Function llist_data_query

Function Documentation

void *llist_data_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 matching data, or NULL if an error occured or no match was found.