Convert a string to a long integer.

long atol(
	const char * __s)

The atol() function converts the initial portion of the string pointed to by s to long integer representation. In contrast to

strtol(s, (char **)NULL, 10); 

this function does not detect overflow (errno is not changed and the result value is not predictable), uses smaller memory (flash and stack) and works more quickly.