commit | 753e2bfbbfb9bb706705bb6ccdd007c6d470e73f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Apr 16 08:45:40 1991 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Apr 16 08:45:40 1991 +0000 |
tree | 0baf5bdd6a05357f396afdd7af9b2204d851905c | |
parent | 27201069c0451c5844150c88e713c43b7eec5007 [diff] [blame] |
Initial revision
diff --git a/Python/strtod.c b/Python/strtod.c new file mode 100644 index 0000000..106ec6e --- /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 <string.h> + +extern double atof(); + +/*ARGSUSED*/ +double +strtod(p, pp) + char *p; + char **pp; +{ + if (pp) + *pp = strchr(p, '\0'); + return atof(p); +}