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

Return an IotLink_t representing the last element in a doubly-linked list without removing it.

static inline IotLink_t * IotListDouble_PeekTail( const IotListDouble_t * const pList )
Parameters
[in]pListThe list to peek.
Returns
Pointer to an IotLink_t representing the element at the tail of the list; NULL if the list is empty. The macro IotLink_Container may be used to determine the address of the link's container.