man(1) Manual page archive


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
     atof (III)

BUGS
     There is no provision for overflow.

 1