view doc/posix-functions/atof.texi @ 11628:59047bad770e

strstr, strcasestr: replace on platforms with broken memchr * modules/strstr: Split into... * modules/strstr-simple: ...new module that does not care about performance, but does care about glibc bug. * m4/strstr.m4 (gl_FUNC_STRSTR): Split... (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr if platform memchr is broken, per Debian bug 521737. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken memchr. * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once. * doc/posix-functions/strstr.texi (strstr): Document the fix. * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise. * modules/mountlist (Depends-on): Add strstr-simple. * modules/gen-uni-tables (Depends-on): Likewise. * modules/argz (Depends-on): Add strstr. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Tue, 16 Jun 2009 06:14:05 -0600
parents c83dc7e8df57
children bb0ceefd22dc
line wrap: on
line source

@node atof
@section @code{atof}
@findex atof

POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/atof.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function mis-parses strings with leading @samp{+} on some old platforms:
Old versions of Linux.

@item
This function returns a positive value for negative underflow on some
platforms:
glibc 2.4, Mingw, Cygwin.

@item
This function fails to do a valid parse of @samp{-0x} on some
platforms:
glibc 2.4, Cygwin < 1.5.25-11.

@item
This function fails to parse Infinities and plain NaNs on some platforms:
Solaris 8, Mingw, OpenBSD 4.0.

@item
This function fails to parse NaN() on some platforms:
Solaris 8, Mingw, OpenBSD 4.0, Cygwin < 1.5.25-11.

@item
This function fails to parse NaN(n-char-sequence) on some platforms:
Solaris 8, Mingw, OpenBSD 4.0.

@item
This function fails to parse C99 hexadecimal floating point on some
platforms:
Solaris 8, Mingw, OpenBSD 4.0.

@item
This function fails to correctly parse very long strings on some
platforms:
Mingw, Cygwin.
@end itemize