From fa5a15eeb283a27ea4f03ee581856930e60a7ca0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 24 Aug 2001 21:05:39 +0000 Subject: atoi, atol, atoll, and atof are supposed to be functions, not macros. -Erik --- libc/stdlib/strtod.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libc/stdlib/strtod.c') diff --git a/libc/stdlib/strtod.c b/libc/stdlib/strtod.c index 7359d5cf9..629d412b6 100644 --- a/libc/stdlib/strtod.c +++ b/libc/stdlib/strtod.c @@ -261,3 +261,10 @@ double strtod(const char *str, char **endptr) return number; } + +/* This should probably be in its own .o file. Oh well. */ +double atof(const char *str) +{ + return(strtod((str),(char**)0)); + +} -- cgit v1.2.3