|
NAMEatoi —
convert ASCII string to integer
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <stdlib.h>
int
DESCRIPTIONTheatoi () function converts the initial portion of the
string pointed to by nptr to int
representation.
It is equivalent to: (int)strtol(nptr, NULL, 10); The ERRORSThe functionatoi () need not affect the value of
errno on an error.
SEE ALSOatof(3), atol(3), strtod(3), strtol(3), strtoul(3)STANDARDSTheatoi () function conforms to IEEE
Std 1003.1-1990 (“POSIX.1”), ISO/IEC
9899:1990 (“ISO C90”), and
ISO/IEC 9899:1999 (“ISO C99”).
HISTORYTheatoi () function appeared in
Version 1 AT&T UNIX.
Visit the GSP FreeBSD Man Page Interface. |