int search(pnode_t p, char *word) { while (p != NULL) { if (strcmp(p->word, word) == 0) { get_explanation(p); return 0; } p = p->pnext; } return -1; }
int search3(V_NODE *p, char *w) { while(p != NULL) { if(strcmp(p->word, w) == 0) { get_explanation(p); return 0; } p = p->next; } return -1; }