Could you use the function, atoi() to convert the char back? (says he
who hasn't touched a strongly typed language in 2 years..)
"Roycroft, Bryan" wrote:
>> anyone used the mySQL c api, if so is there any way to dynamically specify
> the variable that can be passed to the database in an update/select, as it
> only seems to accept a char array, and return the results as character.
> I know that i could generate a char array and convert back from integer to
> decimal based on the properties of the field, but this is time consuming,
> and diffuclt and was wondering was there an easier way.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!