C 中是否存在查找字符串子串的方法?
如果不是,如何有效处理这个问题?
进入循环? c 中正确的语法是什么?
const char subString[] = { "car", "blue", "red"};
char String[] = "I love red color and i hate blue color";
for .... String lenght... {
printf("I found subString");
}
最佳答案
对于空终止的 C 字符串:
关于c - 在字符串中查找子字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19883147/