1 void subString(char filePath) 2 { 3 int len = strlen(filePath); 4 int num, n; 5 char buf[128] = {0}; 6 char cutOff[128] = {0}; 7 8 strcpy(buf, filePath); 9 for(num = len - 1; num > 0; num--){ 10 if(buf[num] == "\") 11 { 12 n = num; 13 for(num = n+1; num < len; num++){ 14 cutOff[num-n-1] = buf[num]; 15 } 16 break; 17 } 18 } 19 }