The atoi function

Name

atoi -- 

Synopsis

#include <stdlib.h>

int atoi (const char *nptr);

Description

The atoi function converts the initial portion of the string pointed to by nptr to int representation. Except for the behavior in error, it is equivalent to

(int)strtol (nptr, (char **)NULL, 10)

Returns

The atoi function returns the converted value.

See Also

The strtol function