----- Original Message ----- From: "Segher Boessenkool" <segher@xxxxxxxxxxxxxxxxxxx> To: "Tom Tran" <tom.tran@xxxxxxxx> Cc: <gcc-help@xxxxxxxxxxx> Sent: Thursday, December 18, 2003 11:44 PM Subject: Re: convert number to string > > I am trying to convert a number to a string. The C book I have states > > that the function is in stdlib.h, For example, the syntax for itoa() > > is: > > Have a look at sprintf() (or better, snprintf()). > > > Segher > > You can try strtoul() or strtol().