| 559 * @param context additional context for the compare function |
559 * @param context additional context for the compare function |
| 560 * @param allow_duplicates @c false if duplicates shall be skipped during insertion |
560 * @param allow_duplicates @c false if duplicates shall be skipped during insertion |
| 561 * @retval zero success |
561 * @retval zero success |
| 562 * @retval non-zero a re-allocation was necessary but failed |
562 * @retval non-zero a re-allocation was necessary but failed |
| 563 */ |
563 */ |
| 564 cx_attr_nonnull |
564 cx_attr_nonnull_arg(1, 2, 4, 6) |
| 565 CX_EXPORT int cx_array_insert_sorted_c_(const CxAllocator *allocator, CxArray *array, |
565 CX_EXPORT int cx_array_insert_sorted_c_(const CxAllocator *allocator, CxArray *array, |
| 566 size_t elem_size, const void *sorted_data, size_t n, |
566 size_t elem_size, const void *sorted_data, size_t n, |
| 567 cx_compare_func2 cmp_func, void *context, bool allow_duplicates); |
567 cx_compare_func2 cmp_func, void *context, bool allow_duplicates); |
| 568 |
568 |
| 569 /** |
569 /** |