Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Deletes the entire list by free each element and settign _head to NULL
- void deleteList(struct Node** head){
- struct Node* current = *head;
- struct Node* temp;
- while(current!=NULL){
- temp = current;
- current = current->next;
- free(temp->employee);
- free(temp);
- //temp=NULL;
- }
- *head = NULL;
- }
Add Comment
Please, Sign In to add comment