okay..so basically what i have is two linked lists(link1, link2) and link2 contains all of the values stored in link1. What i need to do is use string compare to clean the big list free of everything that is in link1. I believe i am on the right track but i am stuck as to how i should make this work. here is the code for the clean list function:
Code:struct info_node * clean_list(struct info_node * link1, struct info_node * link2) { struct info_node * top = NULL ; struct info_node * pre_pntr = NULL; struct info_node* current_pntr = NULL; While (current_pntr != NULL) { if (strcmp(link1->fname, link2->fname) && (strcmp(link1->lname, link2->lname) != 0) { link1 = link1->next ; link2 = link2->next ; } else { } } return(0) ; } //end of func clean_list()