1 2 3 4 5 6 7 8
#include "stddef.h" // for NULL #include <stdlib.h> // for strtol, atoi int atoi(const char *str) { return (int)strtol(str, (char **)NULL, 10); }