0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 16:45:42 +01:00
cpython/Python/strtod.c
1991-04-16 08:45:40 +00:00

18 lines
300 B
C

/* 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);
}