c语言字符串分离函数 - strtok

这里我以“Knowing that there are tigers in the mountains, they prefer to travel in the mountains.”为例 以空格隔开分离: while ((retptr=strtok(ptr, " ")) != NULL) { printf("substr[%d]:%s\n", i++, retptr);
相关文章
相关标签/搜索