src/cx/map.h

changeset 1444
dd9dcbb39c2f
parent 1437
dde4903c0fd7
child 1445
e8089a590b71
--- a/src/cx/map.h	Fri Oct 24 21:15:14 2025 +0200
+++ b/src/cx/map.h	Sat Oct 25 21:12:59 2025 +0200
@@ -484,10 +484,11 @@
  * @param clone_func the clone function for the values
  * @param clone_allocator the allocator that is passed to the clone function
  * @param data optional additional data that is passed to the clone function
- * @return the number of elements that have been successfully cloned
+ * @retval zero when all elements were successfully cloned
+ * @retval non-zero when an allocation error occurred
  */
 cx_attr_nonnull_arg(1, 2, 3)
-CX_EXPORT size_t cxMapClone(CxMap *dst, const CxMap *src,
+CX_EXPORT int cxMapClone(CxMap *dst, const CxMap *src,
         cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data);
 
 #ifdef    __cplusplus

mercurial