1.1 --- a/src/cx/array_list.h Mon Dec 18 16:04:21 2023 +0100 1.2 +++ b/src/cx/array_list.h Mon Dec 18 16:14:07 2023 +0100 1.3 @@ -152,12 +152,14 @@ 1.4 * Allocates an array list for storing elements with \p item_size bytes each. 1.5 * 1.6 * If \p item_size is CX_STORE_POINTERS, the created list will be created as if 1.7 - * cxListStorePointers() was called immediately after creation. 1.8 + * cxListStorePointers() was called immediately after creation and the compare 1.9 + * function will be automatically set to cx_cmp_ptr(), if none is given. 1.10 * 1.11 * @param allocator the allocator for allocating the list memory 1.12 * (if \c NULL the cxDefaultAllocator will be used) 1.13 * @param comparator the comparator for the elements 1.14 - * (if \c NULL sort and find functions will not work) 1.15 + * (if \c NULL, and the list is not storing pointers, sort and find 1.16 + * functions will not work) 1.17 * @param item_size the size of each element in bytes 1.18 * @param initial_capacity the initial number of elements the array can store 1.19 * @return the created list 1.20 @@ -177,7 +179,8 @@ 1.21 * set it immediately after creation or use cxArrayListCreate(). 1.22 * 1.23 * If \p item_size is CX_STORE_POINTERS, the created list will be created as if 1.24 - * cxListStorePointers() was called immediately after creation. 1.25 + * cxListStorePointers() was called immediately after creation and the compare 1.26 + * function will be automatically set to cx_cmp_ptr(). 1.27 * 1.28 * @param item_size the size of each element in bytes 1.29 * @param initial_capacity the initial number of elements the array can store