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