Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main() {
- char str[150];
- char *token;
- gets(str);
- for(token = strtok(str, ","); token != NULL; token = strtok(NULL, ",")) printf("%s\n", token);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement