Re: Convert float to gchar *



On Sat, 2003-10-11 at 16:07, Gus Koppel wrote:
Not really. snprintf () on an auto (local) buffer (instead of pointer)
variable is probably faster / more direct, uses less system resources
and you don't need to free anything by yourself, thus avoiding a
potential memory leak cause.

You win possible crashes and buffer overflows instead.

Havoc





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