Gitignore
[mirrors/Programs.git] / c / strtok.c
CommitLineData
21c4e167
H
1#include <stdio.h>
2#include <string.h>
3
4int main(int argc, char *argv[]) {
5 char text[] = "Hello \ndolly \r\nomg!\tHow are you?\n \n\t";
6 puts(text);
7 puts("----------------------------");
8
9 char *str;
10 char delim[] = " \r\n\t";
11 for(str = strtok(text, delim);str != NULL;str = strtok(NULL, delim)) {
12 printf("[%s]\n", str);
13 }
14}
This page took 0.225926 seconds and 4 git commands to generate.