src/lib/ppc405lib/stdlib.c
/// Convert a string to an integer - base 10 only
///
/// atoi(str) is defined here as strtol(str, 0, 10) in sympathy with the POSIX
/// standard. Note that by specification "atoi() does not detect errors",
/// however in this implementation the long integer returned by the strtol()
/// call just mentioned is simply converted to an int.
Convert a string to an integer - base 10 only
atoi(str) is defined here as strtol(str, 0, 10) in sympathy with the POSIX
standard. Note that by specification "atoi() does not detect errors",
however in this implementation the long integer returned by the strtol()
call just mentioned is simply converted to an int.
Convert a string to an integer - base 10 only atoi ( str ) is defined here as strtol ( str 0 10 ) in sympathy with the POSIX standard . Note that by specification " atoi () does not detect errors " however in this implementation the long integer returned by the strtol () call just mentioned is simply converted to an int .
int
atoi(const char *str)
{
    return strtol(str, 0, 10);
}
int atoi ( const char * str ) { return strtol ( str , 0 , 10 ) ; }
Convert a string to an integer - base 10 only
atoi(str) is defined here as strtol(str, 0, 10) in sympathy with the POSIX
standard.
Convert a string to an integer - base 10 only atoi ( str ) is defined here as strtol ( str 0 10 ) in sympathy with the POSIX standard .