Thanks for the response..it was helpful. The information I was missing was that numeric values appear in MYSQL_ROW arrays as null-terminated strings, not as binary data.
Travis On 2003.02.26 00:58 Bernhard Döbler wrote: > Hi Travis, > > so far I see, you cannot simply interpret 'length' as the length in bytes > of the corresponding "byte string" in the MYSQL_ROW. > Think of the Type VARCHAR. > The length member of the FIELD tells you the maximum, the row gives you > the string in the actual length. > So far I know the Strings in the ROW are zero-terminated so you can use > it with ease and the regular C-character-functions. > > http://www.mysql.com/doc/en/mysql_fetch_row.html > > Regards > Bernhard > > ----- Original Message ----- > From: "Travis McLeskey" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 25, 2003 10:04 PM > Subject: Simple C API question > > > > > > Question: Can I reliably interpret 'length' as the length in bytes of the > > corresponding "byte string" in the MYSQL_ROW, and is there a usual way to > > extract these data into regular C datatypes? > > > > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php