Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void deleteQueue(struct queueNode **head_ref) {
- struct queueNode *current = *head_ref;
- struct queueNode *next;
- while (current != NULL) {
- next = current->next;
- free(current);
- current = next;
- }
- *head_ref = NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement