我有以下程序:
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char *tp = NULL, *cp = NULL, *next_token = NULL;
char TokenListe[] = "Hello,I Am,1";
tp = strtok_s(TokenListe, ", ", &next_token);
printf(tp);
return 0;
}
当我使用 Visual Studio 2015 编译它时,它会编译,没有任何警告。但是当我使用 Dev C++ 5.11 编译它时,我在第 10 行收到以下警告:
[警告] 赋值使指针从整数不进行强制转换
有没有解决该警告的解决方案?