atoi3
Convert ascii string to integer
Usage
#include <stdlib.h>
int
atoi(const char *nptr);
Library
Standard C Library (libc, -lc)
Overview
The atoi() 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 atoi() function has been deprecated by strtol() and should not be used in new code.
Errors
The function atoi() need not affect the value of errno on an error.
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 40 times.