using strtol in c code example Example: strtol c long strtol( const char * theString, char ** end, int base );