Document some behaviour I'm depending on.

(TAILQ_FOREACH leaves the variable NULL if there were no more to do)
This commit is contained in:
julian 2001-12-28 22:00:27 +00:00
parent e208ef8e1a
commit c7d1e5d15e

View File

@ -738,6 +738,8 @@ traverses the tail queue referenced by
.Fa head
in the forward direction, assigning each element in turn to
.Fa var .
.Fa Var
is set to NULL if the loop completes normally, or if there were no elements.
.Pp
The macro
.Nm TAILQ_FOREACH_REVERSE