Initial revision

This commit is contained in:
Guido van Rossum 1991-04-16 08:45:40 +00:00
parent 27201069c0
commit 753e2bfbbf
1 changed files with 17 additions and 0 deletions

17
Python/strtod.c Normal file
View File

@ -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);
}