[PATCH] Fix strtod and *scanf

Ulrich Drepper drepper@redhat.com
Mon Aug 6 21:34:00 GMT 2001


Jakub Jelinek <jakub@redhat.com> writes:

> strtod("Infinity", &x) incorrectly points x to 'i', not '\0',
> sscanf("+Inf","%e") incorrectly returns 0 (ISO C99 requires that it handles
> optionally signed number, infinity, ..., and that it should accept the same
> thing as strtod). This patch should fix it.

Thanks, I've applied it.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list