Thu, 17 Nov 2022 18:55:14 +0100
#219 array list: implement sort
src/array_list.c | file | annotate | diff | comparison | revisions | |
test/test_list.cpp | file | annotate | diff | comparison | revisions |
--- a/src/array_list.c Thu Nov 17 18:46:55 2022 +0100 +++ b/src/array_list.c Thu Nov 17 18:55:14 2022 +0100 @@ -245,7 +245,11 @@ } static void cx_arl_sort(struct cx_list_s *list) { - + qsort(((cx_array_list *) list)->data, + list->size, + list->itemsize, + list->cmpfunc + ); } static int cx_arl_compare(