diff options
author | millert <> | 2002-12-02 15:38:54 +0000 |
---|---|---|
committer | millert <> | 2002-12-02 15:38:54 +0000 |
commit | 4affa22d97e7ea069b70bc4be601b8da989a17b8 (patch) | |
tree | 54be0bf72d5e48013fdce0d5f358e6bd68947bbb /src/lib/libc/stdlib/strtod.c | |
parent | 67603614edacd4bbbfcbe86a0c4e6f2b0c731c09 (diff) | |
download | openbsd-4affa22d97e7ea069b70bc4be601b8da989a17b8.tar.gz openbsd-4affa22d97e7ea069b70bc4be601b8da989a17b8.tar.bz2 openbsd-4affa22d97e7ea069b70bc4be601b8da989a17b8.zip |
Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.
Diffstat (limited to 'src/lib/libc/stdlib/strtod.c')
-rw-r--r-- | src/lib/libc/stdlib/strtod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c index ce7ce9fe56..17d26a1dc3 100644 --- a/src/lib/libc/stdlib/strtod.c +++ b/src/lib/libc/stdlib/strtod.c | |||
@@ -90,7 +90,7 @@ | |||
90 | */ | 90 | */ |
91 | 91 | ||
92 | #if defined(LIBC_SCCS) && !defined(lint) | 92 | #if defined(LIBC_SCCS) && !defined(lint) |
93 | static char *rcsid = "$OpenBSD: strtod.c,v 1.15 2002/02/19 19:39:37 millert Exp $"; | 93 | static char *rcsid = "$OpenBSD: strtod.c,v 1.16 2002/12/02 15:38:54 millert Exp $"; |
94 | #endif /* LIBC_SCCS and not lint */ | 94 | #endif /* LIBC_SCCS and not lint */ |
95 | 95 | ||
96 | #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ | 96 | #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ |
@@ -1992,7 +1992,7 @@ __dtoa | |||
1992 | *decpt = 9999; | 1992 | *decpt = 9999; |
1993 | s = | 1993 | s = |
1994 | #ifdef IEEE_Arith | 1994 | #ifdef IEEE_Arith |
1995 | !word1(d) && !(word0(d) & 0xfffff) ? "Infinity" : | 1995 | !word1(d) && !(word0(d) & 0xfffff) ? ndigits < 8 ? "Inf" : "Infinity" : |
1996 | #endif | 1996 | #endif |
1997 | "NaN"; | 1997 | "NaN"; |
1998 | if (rve) | 1998 | if (rve) |