convert number to string

Kartik Raghavan kartik@acmet.com
Fri Dec 19 05:17:00 GMT 2003


----- Original Message ----- 
From: "Segher Boessenkool" <segher@kernel.crashing.org>
To: "Tom Tran" <tom.tran@noaa.gov>
Cc: <gcc-help@gcc.gnu.org>
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().



More information about the Gcc-help mailing list