ucx/list.c

changeset 36
a9d656e4f7ce
parent 35
fdabd1240b69
child 37
ec296899d12f
equal deleted inserted replaced
35:fdabd1240b69 36:a9d656e4f7ce
139 ucx_list_qsort_sort(list, l, m-1, f, d); 139 ucx_list_qsort_sort(list, l, m-1, f, d);
140 ucx_list_qsort_sort(list, m+1, r, f, d); 140 ucx_list_qsort_sort(list, m+1, r, f, d);
141 } 141 }
142 } 142 }
143 143
144 UcxList *ucx_list_qsort(UcxList *l, cmp_func fnc, void *data) { 144 UcxList *ucx_list_sort(UcxList *l, cmp_func fnc, void *data) {
145 if (l == NULL) { 145 if (l == NULL) {
146 return NULL; 146 return NULL;
147 } 147 }
148 size_t n = ucx_list_size(l); 148 size_t n = ucx_list_size(l);
149 if (n == 1) { 149 if (n == 1) {

mercurial