我不能在 C 中使用 strset 函数。我正在使用Linux,并且我已经导入了 string.h 但它仍然不起作用。我认为Windows和Linux有不同的关键字,但我在网上找不到修复;他们都在使用Windows。
这是我的代码:
char hey[100];
strset(hey,'\0');
错误:: 警告:函数
strset; did you mean
strsep 的隐式声明?[-Wimplicit-function-declaration] strset(hey, '\0');^~~~~~ strsep