diff --git a/Python/strtod.c b/Python/strtod.c index 106ec6e1363..d41b6908d00 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); }