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

Remove the element at the head of a doubly-linked list.

static inline IotLink_t * IotListDouble_RemoveHead( const IotListDouble_t * const pList )
Parameters
[in]pListThe doubly-linked list that holds the element to remove.
Returns
Pointer to an IotLink_t representing the removed list head; NULL if the list is empty. The macro IotLink_Container may be used to determine the address of the link's container.