aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/atoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/atoll.c')
-rw-r--r--src/lib9/atoll.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib9/atoll.c b/src/lib9/atoll.c
new file mode 100644
index 00000000..6c345df6
--- /dev/null
+++ b/src/lib9/atoll.c
@@ -0,0 +1,9 @@
+#include <u.h>
+#include <libc.h>
+
+vlong
+atoll(char *s)
+{
+ return strtoll(s, 0, 0);
+}
+