summaryrefslogtreecommitdiff
path: root/libc/stdlib/strto_ll.c
diff options
context:
space:
mode:
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
+
+
+