AWS IoT Device SDK C:
Linear Containers
Linked lists and Queues
|
Return to main page ↑ |
Remove all matching elements from a doubly-linked list.
[in] | pList | The doubly-linked list to search. |
[in] | isMatch | Function to determine if an element matches. Pass NULL to search using the address pMatch , i.e. element == pMatch . |
[in] | pMatch | If isMatch is NULL , each element in the list is compared to this address to find a match. Otherwise, it is passed as the second argument to isMatch . |
[in] | freeElement | A function to free memory used by each removed list element. Optional; pass NULL to ignore. |
[in] | linkOffset | Offset in bytes of a link member in its container, used to calculate the pointer to pass to freeElement . This value should be calculated with the C offsetof macro. This parameter is ignored if freeElement is NULL or its value is 0 . |