diff options
Diffstat (limited to 'userland/libc/stdlib/atol.c')
-rw-r--r-- | userland/libc/stdlib/atol.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdlib.h> + +long atol(const char *nptr) { + return strtol(nptr, (char **)NULL, 10); +} |