在字符串中查找子字符串

在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"); } 

对于null终止的C字符串:

的strstr()