I am not aware of any libc implementations that don't allocate memory to do double-to-ascii conversions. From what I've seen Solaris does the best here calling malloc only in __big_float_times_power(). I don't see us replacing gdtoa anytime soon, so we should probably document this in the snprintf() man pages. We could also file a bug report with opengroup/posix to make ENOMEM legal for floating point conversions. christos
Attachment:
signature.asc
Description: Message signed with OpenPGP