This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Fix strtod() flaw.
Andrew Lunn <andrew@lunn.ch> writes:
> On Tue, Dec 27, 2005 at 09:50:30PM +0300, Sergei Organov wrote:
>> Hello,
>>
>> strtod() bundled with eCos considers 'd' and 'D' to be synonyms for 'e'
>> and 'E' in floating point numbers though according to specification only
>> 'e' and 'E' are allowed. The patch below fixes it.
>
> Could you point me towards an online copy of the specification.
Well, I took it from glibc info documentation, not from C language specs
that I doubt could be found online. A reference is here:
<http://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html#Parsing-of-Floats>
-- Sergei.