diff options
Diffstat (limited to 'lib/libc/stdlib/atol.c')
| -rw-r--r-- | lib/libc/stdlib/atol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/stdlib/atol.c b/lib/libc/stdlib/atol.c new file mode 100644 index 00000000..976f9997 --- /dev/null +++ b/lib/libc/stdlib/atol.c @@ -0,0 +1,6 @@ +#include <stdlib.h> + +long atol(const char *nptr) +{ + return strtol(nptr, (char **)NULL, 10); +} |
