Commit 753e2bfb authored by Guido van Rossum's avatar Guido van Rossum

Initial revision

parent 27201069
/* 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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment