ATOI(III) − PWB/UNIX 2/8/75
NAME
atoi − convert ASCII to integer
SYNOPSIS
atoi(nptr)
char *nptr;
DESCRIPTION
Atoi converts the string pointed to by nptr to an integer. The string can contain leading blanks or tabs, an optional ‘−’, and then an unbroken string of digits. Conversion stops at the first non-digit.
SEE ALSO
BUGS
There is no provision for overflow.