相关疑难解决方法(0)

strstr()表示非null终止的字符串

如何在C 中对计数字符串(即空终止)进行就地等效?strstr()

c string indexof null-terminated

27
推荐指数
3
解决办法
1万
查看次数

C:在文件中搜索字符串

如果我有:

const char *mystr = "cheesecakes";
FILE *myfile = fopen("path/to/file.exe","r");
Run Code Online (Sandbox Code Playgroud)

我需要编写一个函数来确定是否myfile包含任何出现的mystr.谁能帮助我?谢谢!

更新:事实证明我需要部署的平台没有memstr.有谁知道我可以在我的代码中使用的免费实现?

c string search file

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

c ×2

string ×2

file ×1

indexof ×1

null-terminated ×1

search ×1