Conversion of character string to integer (int type)
Returns the converted value if the partial character string could be converted. If it could not, 0 is returned.
This function converts the first part of the character string indicated by str into an int type representation. atoi is the same as "(int) strtol (str, NULL, 10)".