From d0cca44913356f8ce15e15216b0e26c2e74b4d06 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 17 Apr 2024 16:55:16 +0200 Subject: LibC: Add more functions that support "long long" integers --- userland/libc/stdlib/atol.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 userland/libc/stdlib/atol.c (limited to 'userland/libc/stdlib/atol.c') diff --git a/userland/libc/stdlib/atol.c b/userland/libc/stdlib/atol.c new file mode 100644 index 0000000..7669457 --- /dev/null +++ b/userland/libc/stdlib/atol.c @@ -0,0 +1,5 @@ +#include + +long atol(const char *nptr) { + return strtol(nptr, (char **)NULL, 10); +} -- cgit v1.2.3