Page MenuHomeFreeBSD
Paste P145

(An Untitled Masterwork)
ActivePublic

Authored by mjoras on Oct 4 2017, 3:18 PM.
Tags
None
Referenced Files
F2785810:
Oct 4 2017, 3:18 PM
Subscribers
None
/* TailQ Deletion. */
while (!TAILQ_EMPTY(&head)) {
n1 = TAILQ_FIRST(&head);
TAILQ_REMOVE(&head, n1, entries);
free(n1);
}
/* Faster TailQ Deletion. */
n1 = TAILQ_FIRST(&head);
while (n1 != NULL) {
n2 = TAILQ_NEXT(n1, entries);
free(n1);
n1 = n2;
}
TAILQ_INIT(&head);

Event Timeline

mjoras created this object in space S1 Global.