我正在用 C 编程。我想在字符串中搜索字符串。 string.h 中是否有任何内置函数可以执行此操作?或者你知道如何创建一个吗?
最佳答案
Are there any built-in function that does that in string.h ?
是的。看看strstr()
,它是标准库的一部分并在 string.h 中声明。
关于c - 如何在字符串中搜索字符串? C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20845624/