ack/lang/cem/libcc.ansi/core/stdlib/strtod.c

19 lines
225 B
C
Raw Normal View History

1994-06-24 14:02:31 +00:00
/* $Id$ */
1989-05-16 13:13:53 +00:00
2018-06-21 20:33:47 +00:00
#include <stdlib.h>
#include <ack/config.h>
2018-06-21 20:33:47 +00:00
#include "ext_fmt.h"
1989-05-16 13:13:53 +00:00
#if ACKCONF_WANT_FLOAT
1989-05-16 13:13:53 +00:00
double
2018-06-21 20:33:47 +00:00
strtod(const char* p, char** pp)
1989-05-16 13:13:53 +00:00
{
1989-12-18 15:14:14 +00:00
struct EXTEND e;
1989-05-16 13:13:53 +00:00
1989-12-18 15:14:14 +00:00
_str_ext_cvt(p, pp, &e);
return _ext_dbl_cvt(&e);
1989-05-16 13:13:53 +00:00
}
#endif