src/array_list.c

changeset 615
b52b66dcd44b
parent 614
7aaec630cf15
child 616
af7d8a29fbc5
equal deleted inserted replaced
614:7aaec630cf15 615:b52b66dcd44b
243 243
244 return list->size; 244 return list->size;
245 } 245 }
246 246
247 static void cx_arl_sort(struct cx_list_s *list) { 247 static void cx_arl_sort(struct cx_list_s *list) {
248 248 qsort(((cx_array_list *) list)->data,
249 list->size,
250 list->itemsize,
251 list->cmpfunc
252 );
249 } 253 }
250 254
251 static int cx_arl_compare( 255 static int cx_arl_compare(
252 struct cx_list_s const *list, 256 struct cx_list_s const *list,
253 struct cx_list_s const *other 257 struct cx_list_s const *other

mercurial