atoi

atoi, atol, atoll

Defined in header <stdlib.h>
int       atoi( const char *str );
long      atol( const char *str );
long long atoll( const char *str );
(since C99)

Interprets an integer value in a byte string pointed to by str.

Discards any whitespace characters until the first non-whitespace character is found, then takes as many ch