view Python/strtod.c @ 388:31d509e94271 legacy-trunk

Comment out 'abort()' call. Changed comparison operators.
author Guido van Rossum <guido@python.org>
date Sun, 20 Oct 1991 20:12:38 +0000
parents f352ea4dff70
children b46d76ebd9a7
line wrap: on
line source

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