strtok()函数char *strtok(char *str, const char *delim);
#include<stdio.h>
#include<string.h>
int main(){
char srcstr[] = "abcde,f";
char *p;
p = strtok(srcstr,",");
if(p) printf("%s\n",p);
return 0;
}
strtok()函数char *strtok(char *str, const char *delim);
#include<stdio.h>
#include<string.h>
int main(){
char srcstr[] = "abcde,f";
char *p;
p = strtok(srcstr,",");
if(p) printf("%s\n",p);
return 0;
}