From: Guido van Rossum Date: Tue, 16 Apr 1991 08:45:40 +0000 (+0000) Subject: Initial revision X-Git-Tag: v0.9.8~975 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=753e2bfbbfb9bb706705bb6ccdd007c6d470e73f;p=thirdparty%2FPython%2Fcpython.git Initial revision --- diff --git a/Python/strtod.c b/Python/strtod.c new file mode 100644 index 000000000000..106ec6e13632 --- /dev/null +++ b/Python/strtod.c @@ -0,0 +1,17 @@ +/* This is not a proper strtod() implementation, but sufficient for Python. + Python won't detect floating point constant overflow, though. */ + +#include + +extern double atof(); + +/*ARGSUSED*/ +double +strtod(p, pp) + char *p; + char **pp; +{ + if (pp) + *pp = strchr(p, '\0'); + return atof(p); +}