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>
|
2018-06-22 22:04:14 +00:00
|
|
|
#include <ack/config.h>
|
2018-06-21 20:33:47 +00:00
|
|
|
#include "ext_fmt.h"
|
1989-05-16 13:13:53 +00:00
|
|
|
|
2018-06-22 22:04:14 +00:00
|
|
|
#if ACKCONF_WANT_STDIO_FLOAT
|
2007-04-27 22:41:39 +00:00
|
|
|
|
2018-06-21 20:33:47 +00:00
|
|
|
void _str_ext_cvt(const char* s, char** ss, struct EXTEND* e);
|
|
|
|
double _ext_dbl_cvt(struct EXTEND* e);
|
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
|
|
|
}
|
2007-04-27 22:41:39 +00:00
|
|
|
|
|
|
|
#endif
|