effective usage of strtok

来源:互联网 发布:python格式化输出内容 编辑:程序博客网 时间:2024/05/18 01:34
char szLine[] = "Hello ladies and gentlemen.";
for (char *p = szLine; (p = strtok(p, " /t/n")) != NULL; p = NULL)
    printf("%s/n", p);