From: Guido van Rossum Date: Tue, 24 Dec 1991 13:29:10 +0000 (+0000) Subject: Don't rely on X-Git-Tag: v0.9.8~669 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54a41d6366dc5a4c12172c54be455b2c701dd24d;p=thirdparty%2FPython%2Fcpython.git Don't rely on --- diff --git a/Python/strtod.c b/Python/strtod.c index 106ec6e13632..d41b6908d00c 100644 --- a/Python/strtod.c +++ b/Python/strtod.c @@ -1,17 +1,15 @@ /* This is not a proper strtod() implementation, but sufficient for Python. Python won't detect floating point constant overflow, though. */ -#include - +extern int strlen(); extern double atof(); -/*ARGSUSED*/ double strtod(p, pp) char *p; char **pp; { if (pp) - *pp = strchr(p, '\0'); + *pp = p + strlen(p); return atof(p); }