newlib's version of strtod, strtof, strtold, and atof

Gregory Pietsch gpietsch@comcast.net
Sat Jan 7 23:41:00 GMT 2006


Dear Newlib mavens,

I am donating to Newlib a replacement for the atof, strtod, strtof, and 
strtold functions. Please take a look at it and hack it.

The version of strtod in the Newlib stdlib section was hacked to 
generate NaNs, but it doesn't do infinites or hexadecimal floating point 
numbers. The one I wrote is a lot closer to the C99 spec. The only thing 
I didn't try to be meticulous about was the n-char-sequence in NaNs, but 
on the whole I thought it was better than the one that was there. (It 
also introduces strtold!)

Please take a look at it and tell me what you think.

Gregory Pietsch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strtold.c
URL: <http://sourceware.org/pipermail/newlib/attachments/20060107/831cb81a/attachment.c>


More information about the Newlib mailing list