#include <stdlib.h>
#include <stdio.h>
int main( void )
{
char *string, *stopstring;
long l;
string = "10110134";
l = strtol( string, &stopstring, 10 );
printf( "string = %s\n", string );
printf(" strtol = %ld\n", l );
printf(" Stopped scan at: %s\n\n", stopstring );
}