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

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