--- a/docs/Writerside/topics/list.h.md Fri Oct 24 21:15:14 2025 +0200 +++ b/docs/Writerside/topics/list.h.md Sat Oct 25 21:12:59 2025 +0200 @@ -364,7 +364,7 @@ #include <cx/list.h> -size_t cxListClone(CxList *dst, const CxList *src, +int cxListClone(CxList *dst, const CxList *src, cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); @@ -377,8 +377,7 @@ Refer to the documentation of the [clone-function callback](allocator.h.md#clone-function) to learn how to implement it. -The function returns the number of elements successfully cloned. -If an allocation error occurs, this might be smaller than the size of the source list. +The function returns zero if and only if all clone operations were successful. > It is perfectly possible to clone items into a list of a different type. > For example, you can clone elements from a list that is just storing pointers (`CX_STORE_POINTERS`) to a list that