I want to extract the integer value form my file name, and there's no space between my file name
likepart1.dat or part12.datcould u plz correct my formatted textCode:char src[20] = "part12.dat"; char dest[10]; int *i; sscanf(src, "%[1-9]", &i); printf("%d", *i);