Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdio.h>
- main(){
- char string[] = "Helo world, this is a test";
- char del[] = " ,";
- char * word;
- word=strtok(string, del);
- while(word!=NULL){
- printf("%s\n", word);
- word=strtok(NULL, del);
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement