1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Make strtod conforms manpage, use isspace to skip initial whitespaces

instead of hardcoded whitespaces
This commit is contained in:
Andrey A. Chernov 1995-08-01 22:20:16 +00:00
parent e7241b8ffe
commit 765d5b0d6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9846

View File

@ -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: