AWS IoT Device SDK C: Linear Containers
Linked lists and Queues
Return to main page ↑
IotDeQueue_PeekTail

Return an IotLink_t representing the element at the back of the queue without removing it.

static inline IotLink_t * IotDeQueue_PeekTail( const IotDeQueue_t * const pQueue )
Parameters
[in]pQueueThe queue to peek.
Returns
Pointer to an IotLink_t representing the element at the head of the queue; NULL if the queue is empty. The macro IotLink_Container may be used to determine the address of the link's container.