小编The*_*eee的帖子

如何在linux中使用c语言使用strset()

我可以\xe2\x80\x99t在C中使用strset函数。我使用的是Linux,并且我已经导入了string.h,但它仍然不起作用。我认为Windows和Linux有不同的关键字,但我可以\xe2\x80\x99t在线找到修复程序;他们\xe2\x80\x99都使用Windows。

\n\n

这是我的代码:

\n\n
   char hey[100];\n   strset(hey,'\\0');   \n
Run Code Online (Sandbox Code Playgroud)\n\n
\n

错误::警告:函数strset; did you\n meanstrsep` 的隐式声明?[-W隐式函数声明]\n strset(hey, '\\0');

\n\n

^~~~~~ strsep

\n
\n

c linux string string-function

0
推荐指数
1
解决办法
709
查看次数

标签 统计

c ×1

linux ×1

string ×1

string-function ×1