网络 字符串截取; 切开字符串; 字符串分解; strtok
The string is provided only on the first call, as with the strtok subroutine.
字符串只是在第一次调用时给出,如 strtok 子例程。
My best guess at a solution would be to read in the entire file, and for each line use strtok to skip from ;
我最好的猜测一个解决方案是读取整个文件,以及使用;
In this case, the second thread causes strtok to overwrite its static variable with a new address without the first thread's knowledge.
在这种情况下,第二个线程会在第一个线程不知道的情况下,让strtok用一个新地址来改写它的静态变量。
When you make future calls to strtok, passing NULL, the function refers to the saved string address.
当你将来调用strtok函数并传递NULL时,该函数就引用保存的字符串地址。
The strtok function is an excellent example.
函数strtok就是个很好的例子。