diff options
| author | Guido van Rossum <guido@python.org> | 1991-04-16 08:45:40 +0000 | 
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1991-04-16 08:45:40 +0000 | 
| commit | 753e2bfbbfb9bb706705bb6ccdd007c6d470e73f (patch) | |
| tree | 0baf5bdd6a05357f396afdd7af9b2204d851905c /Python/strtod.c | |
| parent | 27201069c0451c5844150c88e713c43b7eec5007 (diff) | |
| download | cpython-git-753e2bfbbfb9bb706705bb6ccdd007c6d470e73f.tar.gz | |
Initial revision
Diffstat (limited to 'Python/strtod.c')
| -rw-r--r-- | Python/strtod.c | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/Python/strtod.c b/Python/strtod.c new file mode 100644 index 0000000000..106ec6e136 --- /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); +}  | 
