Function llist_map

Function Documentation

status_t llist_map(struct llist *list, void (*f)(void *e))

Apply a function to all elements in the llist.

Parameters:
  • list – The linked list handle.

  • f – The function to apply, which CAN modify elements.

Returns:

status_t.