add missing documentation for cx_list_default_swap() return value

Tue, 17 Sep 2024 19:08:22 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 17 Sep 2024 19:08:22 +0200
changeset 882
f8ca6e6c0d48
parent 881
1dbbf8c1c42f
child 883
3012e9b4214e

add missing documentation for cx_list_default_swap() return value

src/cx/list.h file | annotate | diff | comparison | revisions
--- a/src/cx/list.h	Mon Sep 16 19:52:17 2024 +0200
+++ b/src/cx/list.h	Tue Sep 17 19:08:22 2024 +0200
@@ -256,6 +256,8 @@
  * @param list the list in which to swap
  * @param i index of one element
  * @param j index of the other element
+ * @return zero on success, non-zero when indices are out of bounds or memory
+ * allocation for the temporary buffer fails
  */
 __attribute__((__nonnull__))
 int cx_list_default_swap(struct cx_list_s *list, size_t i, size_t j);

mercurial