String to int function?

What's the function for converting a string to an int or a long int?

atoi or atoll http://www.cplusplus.com/reference/cstdlib/atoi/