QUE_head
Application Program Interface
2-345
C Interface
Syntax
elem = QUE_head(queue);
Parameters
QUE_Handle queue;
/* queue object handle */
Return Value
QUE_Elem
*elem;
/* pointer to first element */
Description
QUE_head returns a pointer to the element at the front of queue. The
element is not removed from the queue.
The return value, elem, is a pointer to the element at the front of the QUE.
Such elements have a structure defined similarly to that in the example
in the QUE Module topic. The first field in the structure must be of type
QUE_Elem and is used as an internal pointer.
Calling QUE_head with an empty queue returns the queue itself.
See Also
QUE_head
Return element at front of queue