summaryrefslogtreecommitdiff
path: root/libc/stdlib/strto_ll.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/strto_ll.c
parentfb35042521e6e4b0dcee32ca7e0ce33b18f9523d (diff)
atoi, atol, atoll, and atof are supposed to be functions, not macros.
-Erik
Diffstat (limited to 'libc/stdlib/strto_ll.c')
-rw-r--r--libc/stdlib/strto_ll.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/stdlib/strto_ll.c b/libc/stdlib/strto_ll.c
index e127b181d..c3a5439b3 100644
--- a/libc/stdlib/strto_ll.c
+++ b/libc/stdlib/strto_ll.c
@@ -190,3 +190,13 @@ long long strtoll(const char *str, char **endptr, int base)
}
#endif
+
+#ifdef L_atoll
+long long atoll(const char *str)
+{
+ return(_strto_ll((str),(char**)0,10,0));
+}
+#endif
+
+
+