summaryrefslogtreecommitdiff
path: root/userland/libc/stdlib/atoi.c
blob: 21833061184dabc37f69e67a62e98e3c54dc07dc (plain)
1
2
3
4
#include <stdlib.h>

// https://pubs.opengroup.org/onlinepubs/9699919799/
int atoi(const char *str) { return (int)strtol(str, (char **)NULL, 10); }