Afficher un message
Vieux 13/04/2008, 22h01   #5
Richard Heathfield
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,05345 seconds with 9 queries