summaryrefslogtreecommitdiff
path: root/libc/stdlib/strtod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-24 21:05:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-24 21:05:39 +0000
commitfa5a15eeb283a27ea4f03ee581856930e60a7ca0 (patch)
treefcbc3b65c4653105ebc54f2c756851379add0237 /libc/stdlib/strtod.c
parentfb35042521e6e4b0dcee32ca7e0ce33b18f9523d (diff)
atoi, atol, atoll, and atof are supposed to be functions, not macros.
-Erik
Diffstat (limited to 'libc/stdlib/strtod.c')
-rw-r--r--libc/stdlib/strtod.c7
1 files changed, 7 insertions, 0 deletions
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));
+
+}