int isPrefixOfWord(char * sentence, char * searchWord){ char* buffer; int pst=1; buffer=strtok(sentence," "); while(buffer){ if(strstr(buffer,searchWord)==buffer) return pst; buffer=strtok(NULL," "); pst++; } return -1; }