summaryrefslogtreecommitdiffstats
path: root/share/man/man3/queue.3
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-12-28 22:00:27 +0000
committerjulian <julian@FreeBSD.org>2001-12-28 22:00:27 +0000
commitc7d1e5d15e38175c503173b00486a88ceb3d4aed (patch)
treefdf6cbfdd995bf48d18864e7e65cf59e1ea97417 /share/man/man3/queue.3
parente208ef8e1a3f61ebee49020839b240a9ecf1470e (diff)
downloadFreeBSD-src-c7d1e5d15e38175c503173b00486a88ceb3d4aed.zip
FreeBSD-src-c7d1e5d15e38175c503173b00486a88ceb3d4aed.tar.gz
Document some behaviour I'm depending on.
(TAILQ_FOREACH leaves the variable NULL if there were no more to do)
Diffstat (limited to 'share/man/man3/queue.3')
-rw-r--r--share/man/man3/queue.32
1 files changed, 2 insertions, 0 deletions
diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3
index 072f86a..3251ec1 100644
--- a/share/man/man3/queue.3
+++ b/share/man/man3/queue.3
@@ -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
OpenPOWER on IntegriCloud