blob: 106ec6e136328ca7c45bf140eb489dc0b34a2171 [file] [log] [blame]
Guido van Rossum753e2bf1991-04-16 08:45:40 +00001/* This is not a proper strtod() implementation, but sufficient for Python.
2 Python won't detect floating point constant overflow, though. */
3
4#include <string.h>
5
6extern double atof();
7
8/*ARGSUSED*/
9double
10strtod(p, pp)
11 char *p;
12 char **pp;
13{
14 if (pp)
15 *pp = strchr(p, '\0');
16 return atof(p);
17}