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

16 lines
244 B
C
Raw Normal View History

1989-05-16 13:13:53 +00:00
/* $Header$ */
1989-12-18 15:14:14 +00:00
#include "ext_fmt.h"
1989-05-16 13:13:53 +00:00
1989-12-18 15:14:14 +00:00
void _str_ext_cvt(char *s, char **ss, struct EXTEND *e);
double _ext_dbl_cvt(struct EXTEND *e);
1989-05-16 13:13:53 +00:00
double
1989-12-18 15:14:14 +00:00
strtod(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
}