summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/strtod.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-08-28 05:07:13 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-08-28 05:07:13 +0000
commitfe249e9798eddc97d49d279679a936813e6b1f56 (patch)
tree3ea3797c01f5da4427d4f95b45af5a54082b1775 /lib/libc/stdlib/strtod.c
parent1d6005f288c8f474daedafb5fdbed13e12af971f (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/strtod.c')
-rw-r--r--lib/libc/stdlib/strtod.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c
index cd82c73a8f6e..0ccd6fd3419b 100644
--- a/lib/libc/stdlib/strtod.c
+++ b/lib/libc/stdlib/strtod.c
@@ -146,6 +146,7 @@ static char sccsid[] = "@(#)strtod.c 8.1 (Berkeley) 6/4/93";
#endif
#include "errno.h"
+#include <ctype.h>
#ifdef Bad_float_h
#undef __STDC__
#ifdef IEEE_MC68k
@@ -1212,14 +1213,9 @@ strtod
case 0:
s = s00;
goto ret;
- case '\t':
- case '\n':
- case '\v':
- case '\f':
- case '\r':
- case ' ':
- continue;
default:
+ if (isspace((unsigned char)*s))
+ continue;
goto break2;
}
break2: