diff options
Diffstat (limited to '410user/libstdlib/atol.c')
| -rw-r--r-- | 410user/libstdlib/atol.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/410user/libstdlib/atol.c b/410user/libstdlib/atol.c new file mode 100644 index 0000000..30f976d --- /dev/null +++ b/410user/libstdlib/atol.c @@ -0,0 +1,9 @@ +#include <stddef.h> +#include <stdlib.h> + +long +atol(const char *str) +{ + return strtol(str, NULL, 10); +} + |
