如何在C 中对计数字符串(即非空终止)进行就地等效?strstr()
如果我有:
const char *mystr = "cheesecakes";
FILE *myfile = fopen("path/to/file.exe","r");
Run Code Online (Sandbox Code Playgroud)
我需要编写一个函数来确定是否myfile包含任何出现的mystr.谁能帮助我?谢谢!
更新:事实证明我需要部署的平台没有memstr.有谁知道我可以在我的代码中使用的免费实现?