Function llist_node_query

Function Documentation

struct llist_node *llist_node_query(struct llist *list, const void *e)

Search a llist for specific data.

This routine searches the linked list for a llist_node whose data matches that of the provided argument according to the list->cmpe function.

Parameters:
  • list – The linked list handle

  • e – The data to search for

Returns:

The node for which the data matched, or NULL if an error occured or no match was found.