Function llist_prepend

Function Documentation

status_t llist_prepend(struct llist *list, void *data)

Prepend an item to the llist.

This routine prepends an item to the start of the llist. Can be used as a “push” function.

Parameters:
  • list – The linked list handle.

  • data – The data to insert into the list.

Returns:

status_t.