Re: Library Function for converrting double to string
santosh said:
> Sanchit wrote:
>
>> Library Function for converrting double to string in GCC.
>
> sprintf and snprintf are both standardised and will both do the job,
> though the latter will require C99 support and hence is less portable
> than the former, but it avoids the buffer overflow problem of sprintf.
sprintf doesn't *have* a buffer overflow problem, when used properly.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
|