This is what I have so far:
for(i = 0; i <= 9; i++){
printf("%d", i);
found = strpbrk(nameholder[i], searchterm);
if(strpbrk(nameholder[i], searchterm) == searchterm){
printf("found\n");
foundwhere = i + 1;
break;
}
}// end for
When I run the program, the strpbrk function finds the string, but for some reason it never triggers the if statement. What am I missing?
==is for numerical equality.