hey guys, I am using the following code to count from a text file but I also want to check for ",jo " as well as "jo " I was trying to do it by using while((ch = strstr( ch, "jo ")) != 0) || while((ch = strstr( ch, ",jo ")) != 0) but this doesn't work I was just wondering how I could so this thanks.
char *ch=array;
while((ch = strstr( ch, "jo ")) != 0)
if( ch == array '||isspace (*(ch-1)))
{
temp.count++;
ch++;
}
else
{
break;
}
}