strtok的函数原型为char *strtok(char *s, char *delim),功能为“Parse S into tokens separated by characters in DELIM.If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. ” 翻译成汉语就是:作用于字符
这两个函数都是拆分字符的API,都是线性安全函数,特意写了个实例对比两个函数的不通,从MAN手册中可以看出两个函数都会改变原有字符串。 strsep() function was introduced as a replacement for strtok(3), since the latter cannot handle empty fields. However, strtok(3)