SyntaxFix
Write A Post
Hire A Developer
Questions
One option is strtok
example:
char name[20]; //pretend name is set to the value "My name"
You want to split it at the space between the two words
split=strtok(name," "); while(split != NULL) { word=split; split=strtok(NULL," "); }