fputs/puts dangerous (in C)?

假如想象 提交于 2019-12-02 08:50:19

fputs is not inherently dangerous. Of course without example code its hard to say what was causing the problem you were seeing.

fputs() is not a "dangerous" function (unlike gets(), which is dangerous). The strings you are printing actually contain the characters that end up in the file. Without code, we can't know how they got there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!