ISO C POSIX.1 XPG4 XPG4.2 C99 Single UNIX Specification, Version 3
#include <stdlib.h> int atoi(const char *nptr);
(int)strtol(nptr, NULL, 10)
There are no documented errno values.