254 * version for your list. |
254 * version for your list. |
255 * |
255 * |
256 * @param list the list in which to swap |
256 * @param list the list in which to swap |
257 * @param i index of one element |
257 * @param i index of one element |
258 * @param j index of the other element |
258 * @param j index of the other element |
|
259 * @return zero on success, non-zero when indices are out of bounds or memory |
|
260 * allocation for the temporary buffer fails |
259 */ |
261 */ |
260 __attribute__((__nonnull__)) |
262 __attribute__((__nonnull__)) |
261 int cx_list_default_swap(struct cx_list_s *list, size_t i, size_t j); |
263 int cx_list_default_swap(struct cx_list_s *list, size_t i, size_t j); |
262 |
264 |
263 /** |
265 /** |