#include <stdlib.h> int atoi(const char *string);
Convert as much of the string as possible to an equivalent integer value.
This function is almost like (int)strtol(string, NULL, 10)
(see section strtol).
The equivalent value, or zero if the string does not represent a number.
ANSI, POSIX
main(int argc, char **argv) { int i = atoi(argv[1]); ...
Go to the first, previous, next, last section, table of contents.