aboutsummaryrefslogtreecommitdiff
path: root/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'array.h')
-rw-r--r--array.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/array.h b/array.h
index a01f19a..8417f7d 100644
--- a/array.h
+++ b/array.h
@@ -102,5 +102,9 @@ bool array_truncate(Array*, size_t length);
* @endrst
*/
bool array_resize(Array*, size_t length);
+/**
+ * Sort array, the comparision function works as for `qsort(3)`.
+ */
+void array_sort(Array*, int (*compar)(const void*, const void*));
#endif