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

17 lines
272 B
C
Raw Normal View History

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