阅读背景:

在C中strtok_r和strtok_s有什么区别?

来源:互联网 

I'm trying to use this function in a C program that needs to be able to compile in Linux and Windows. At first I tried using strtok_r, but then when I compiled on windows, it complained about the function not existing and said it would assume it's an extern function, but then failed. I then used strtok_s and it compiled! Then I tried on Linux but now it's complaining that there is an "undefined reference to 'strtok_s'". I'm trying to use this function in a C program




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: