[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hexadecimal input to strtod
From: |
Hans-Bernhard Broeker |
Subject: |
Re: hexadecimal input to strtod |
Date: |
28 May 2001 14:02:48 GMT |
Kenneth MacKenzie <address@hidden> wrote:
> It appears that since ISO C99 the C library function strtod is
> supposed to accept hexadecimal input: see
> http://www.gnu.org/manual/glibc-2.2.3/html_node/libc_414.html
> However, the version which I'm using doesnt seem to handle this properly:
> $ gcc --version
> egcs-2.91.66
> $ ls -l /lib/libc-*
> -rwxr-xr-x 1 root root 4107583 Feb 16 11:15 /lib/libc-2.1.3.so*
Version mismatch between the documentation you're referring to and the
library you're testing. And in fact, there is no mention whatsoever of
hexadecimal parsing in the docs of glibc-2.1 I have here, stating:
This is Edition 0.08 DRAFT, last updated 11 Jan 1999, of `The GNU C
Library Reference Manual', for Version 2.1 Beta of the GNU C Library.
Your code snipped also does not test at all for success of strtod.
--
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.