SyntaxFix
Write A Post
Hire A Developer
Questions
You can use strtok()
strtok()
char string[]= "abc/qwe/jkh"; char *array[10]; int i=0; array[i] = strtok(string,"/"); while(array[i]!=NULL) { array[++i] = strtok(NULL,"/"); }