On 14-Jun-01 Kenneth Johansen wrote:
> hi all, ive got a small problem (again).
> i have a table with an entry "foo" which is an int(3).
>
> my problem is that whenever i collect the values in my c program.
> they are returned as characters with mysql_fetch_row. (which is ok)
> but i cant seem to convert them into int,
> using something like
>
> temp = (int) row[0];
>
> this might not (strictly) be a mysql question.
> but IMHO i dont think a C forum is the right place either.
>
No it's not; & yes, it would.
man atoi strtod sscanf
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
---------------------------------------------------------------------
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