char* s1 = "local/bin/temp/USER/Mp3/Female";
char* s2 = "/Female";
char s3[60];
strcpy(s3, s1);
s3[strstr(s1,s2)-s1] = '\0';
s3应是"local/bin/temp/USER/Mp3"
char* s1 = "local/bin/temp/USER/Mp3/Female";
char* s2 = "/Female";
char s3[60];
strcpy(s3, s1);
s3[strstr(s1,s2)-s1] = '\0';
s3应是"local/bin/temp/USER/Mp3"