Re: convert number to string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- 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().


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux