Name
atoi function — Converts a string to an integer
Synopsis
int atoi(const char* str)
The atoi
function reads an
integer from the character array str
and returns the value of the number.
The atoi
function is equivalent
to calling static_cast<int>(strtol(str
,
NULL
, 10))
.