--- a/docs/Writerside/topics/list.h.md Mon Oct 20 20:38:02 2025 +0200 +++ b/docs/Writerside/topics/list.h.md Tue Oct 21 17:06:17 2025 +0200 @@ -352,6 +352,24 @@ The return value of `cxListCompare()` is zero if the lists are element-wise equivalent. If they are not, the non-zero return value equals the return value of the used compare function for the first pair of elements that are not equal. +## Clone + +```C +#include <cx/allocator.h> + +typedef void*(cx_clone_func)( + void *target, const void *source, + const CxAllocator *allocator, + void *data); + +#include <cx/list.h> + +size_t cxListClone(CxList *dst, const CxList *src, + cx_clone_func clone_func, + const CxAllocator *clone_allocator, + void *data); +``` + ## Dispose ```C