atoi

The atoi() function converts a character string to an integer value.

result = atoi (string);
string

Required. Character string that contains the numeric character string to convert to an integer value.

result contains the converted integer value.

In this example,

result = atoi ("123");

result contains the integer value 123.