Exists in C method for finding a substring in a string?
If not, how to effectively deal with this problem?
In for cycle? And what is the correct syntax in 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");
}
const char subString[] = { "car", "blue", "red"};won't compile,const char * subString[] = { "car", "blue", "red"};would.