C++ strtok - multiple use with more data buffers

前端 未结 3 802
一生所求
一生所求 2021-01-27 03:41

I have little issue with using strtok() function. I am parsing two files. Firts I load file 1 into buffer. This file constains name of the second file

3条回答
  •  长情又很酷
    2021-01-27 04:37

    Which is why it is constantly recommended to not use strtok (not to mention the problems with threads). There are many better solutions, using the functions in the C++ standard library. None of which modify the text they're working on, and none of which use hidden, static state.

提交回复
热议问题