strtol ha la seguente firma:

codice:
long strtol(const char *nptr, char **endptr, int base);