From 54a41d6366dc5a4c12172c54be455b2c701dd24d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 24 Dec 1991 13:29:10 +0000 Subject: Don't rely on --- Python/strtod.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Python/strtod.c b/Python/strtod.c index 106ec6e..d41b690 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); } -- cgit v0.12