Function llist_clear

Function Documentation

status_t llist_clear(struct llist *list)

Clear a llist.

This routine clears an llist. Every node with allocated memory for its data field (non-NULL) will have that memory freed if it is in the DS domain, along with the memory for the node.

Parameters:

list – The linked list handle.

Returns:

status_t.