If a tail queue is empty the return value is not

undefined, it is NULL.
This commit is contained in:
mckusick 2006-03-22 02:40:38 +00:00
parent e6e3da5866
commit 49444cf98e

View File

@ -538,7 +538,7 @@ after the element
The macro
.Nm STAILQ_LAST
returns the last item on the tail queue.
If the tail queue is empty the return value is undefined.
If the tail queue is empty the return value is NULL.
.Pp
The macro
.Nm STAILQ_NEXT
@ -899,7 +899,7 @@ before the element
The macro
.Nm TAILQ_LAST
returns the last item on the tail queue.
If the tail queue is empty the return value is undefined.
If the tail queue is empty the return value is NULL.
.Pp
The macro
.Nm TAILQ_NEXT