Old-fashioned here
If you don't use String (capital S) but character arrays
char text[] = "My color is black";
char color[] = "black";
if(strstr(text, color) != NULL)
{
 // match
}
else
{
 // no match
}
Old-fashioned here
If you don't use String (capital S) but character arrays
char text[] = "My color is black";
char color[] = "black";
if(strstr(text, color) != NULL)
{
 // match
}
else
{
 // no match
}