Standards / Extensions | C or C++ | Dependencies |
---|---|---|
ISO C |
both |
#include <stdlib.h>
long int atol(const char *nptr);
strtol(nptr, (char**)NULL, 10)
The atol() function returns the converted value if the value can be represented, otherwise the return value is undefined.