Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P145
(An Untitled Masterwork)
Active
Public
Actions
Authored by
mjoras
on Oct 4 2017, 3:18 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F2785810:
Oct 4 2017, 3:18 PM
2017-10-04 15:18:33 (UTC+0)
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 paste.
Oct 4 2017, 3:18 PM
2017-10-04 15:18:33 (UTC+0)
mjoras
created this object in space
S1 Global
.
Log In to Comment