Convert strings of ASCII characters to the appropriate numeric values.
#include <stdlib.h> int atoi (const char *nptr); long int atol (const char *nptr);
[white-spaces][+|-]digits
The function call atol (str) is equivalent to strtol (str, (char**)NULL, 10), and the function call atoi (str) is equivalent to (int) strtol (str, (char**)NULL, 10), except, in both cases, for the behavior on error.
n | The converted value. |
Convert strings of ASCII characters to the appropriate numeric values. atoll is a synonym for atoq.
#include <stdlib.h> __int64 atoq (const char *nptr); __int64 atoll (const char *nptr);
[white-spaces][+|-]digits
The function call atoq (str) is equivalent to strtoq (str, (char**)NULL, 10), except for the behavior on error.
n | The converted value. |