1#include <stdio.h>
2#include <stdlib.h>
3
4int main () {
5 char str[30] = "2030300 This is test";
6 char *ptr;
7 long ret;
8
9 ret = strtol(str, &ptr, 10);
10 printf("The number(unsigned long integer) is %ld\n", ret);
11 printf("String part is |%s|", ptr);
12
13 return(0);
14}