Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void clear(list *L)
- {
- node **x;
- if(L->head)
- {
- *x = L->head;
- while((*x)->next)
- {
- *x = (*x)->next;
- free((*x)->prev);
- (*x)->prev = NULL;
- }
- free(*x);
- *x = NULL;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement