src/cx/array_list.h

changeset 1620
bf5d647f939d
parent 1618
ef7cab6eb131
child 1621
c52a4c67e29e
--- a/src/cx/array_list.h	Wed Dec 17 20:13:08 2025 +0100
+++ b/src/cx/array_list.h	Thu Dec 18 12:11:30 2025 +0100
@@ -546,6 +546,20 @@
         cx_array_insert_unique_array_a(cxDefaultAllocator, array, cmp_func, sorted_data, n)
 
 /**
+ * An alternative to qsort_r() when that is not available on your platform.
+ *
+ * If it is available, qsort_r() is used directly.
+ *
+ * @param array the array that shall be sorted
+ * @param nmemb the number of elements in the array
+ * @param size the size of one element
+ * @param fn the compare function
+ * @param context the context for the compare function
+ */
+CX_EXPORT void cx_array_qsort_c(void *array, size_t nmemb, size_t size,
+        cx_compare_func2 fn, void *context);
+
+/**
  * Creates an iterator over the elements of an array.
  *
  * Internal function - do not use.

mercurial