Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. void deleteQueue(struct queueNode **head_ref) {
  2. struct queueNode *current = *head_ref;
  3. struct queueNode *next;
  4. while (current != NULL) {
  5. next = current->next;
  6. free(current);
  7. current = next;
  8. }
  9. *head_ref = NULL;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement