atol
Converts a string to long integer representation
#include <stdlib.h>
long int atol (
const char *ptr);
atol returns the converted value.
The atol function converts the string pointed to by ptr to long integer representation.
#include <stdlib.h> main () { long int x; x = atol( "-289" ); }