If a tail queue is empty the return value is not
undefined, it is NULL.
This commit is contained in:
parent
3ee42667a4
commit
c4e29cccdd
@ -538,7 +538,7 @@ after the element
|
|||||||
The macro
|
The macro
|
||||||
.Nm STAILQ_LAST
|
.Nm STAILQ_LAST
|
||||||
returns the last item on the tail queue.
|
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
|
.Pp
|
||||||
The macro
|
The macro
|
||||||
.Nm STAILQ_NEXT
|
.Nm STAILQ_NEXT
|
||||||
@ -899,7 +899,7 @@ before the element
|
|||||||
The macro
|
The macro
|
||||||
.Nm TAILQ_LAST
|
.Nm TAILQ_LAST
|
||||||
returns the last item on the tail queue.
|
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
|
.Pp
|
||||||
The macro
|
The macro
|
||||||
.Nm TAILQ_NEXT
|
.Nm TAILQ_NEXT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user