Everything

atoi


Conversion of character string to integer (int type)

[Classification]

Standard library

[Syntax]

#include <stdlib.h>

int atoi(const char *str);

[Return value]

Returns the converted value if the partial character string could be converted. If it could not, 0 is returned.

[Description]

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)".