Function llist_sort

Function Documentation

status_t llist_sort(struct llist *list, enum exec_type type)

Sort a llist.

Sorts a linked list using the sort type specified. The recursive sort option is more memory intensive that the iterative one, but can run faster under certain conditions. The iterative sort should be used under conditions where memory is at a premium.

Parameters:
  • list – The linked list handle.

  • typeexec_type.

Returns:

status_t.