MCPcopy Create free account
hub / github.com/dillo-browser/dillo / dList_sort

Function dList_sort

dlib/dlib.c:758–763  ·  view source on GitHub ↗

* Sort the list using a custom function */

Source from the content-addressed store, hash-verified

756 * Sort the list using a custom function
757 */
758void dList_sort (Dlist *lp, dCompareFunc func)
759{
760 if (lp && lp->len > 1) {
761 QuickSort(lp->list, lp->list + lp->len - 1, func);
762 }
763}
764
765/**
766 * Insert an element into a sorted list.

Callers 2

File_dillodir_newFunction · 0.85
fill_services_listFunction · 0.85

Calls 1

QuickSortFunction · 0.85

Tested by

no test coverage detected