1.1 --- a/src/cx/linked_list.h Sun Oct 03 16:02:53 2021 +0200 1.2 +++ b/src/cx/linked_list.h Sun Oct 03 16:30:47 2021 +0200 1.3 @@ -74,19 +74,15 @@ 1.4 /** 1.5 * Finds the last node in a linked list. 1.6 * 1.7 - * If a pointer to \p end is provided, the result is just \c *end. 1.8 - * Otherwise, this function starts with the pointer denoted by \c *begin and 1.9 - * traverses the list along a next pointer whose location within the node struct is 1.10 + * The function starts with the pointer denoted by \p begin and traverses the list 1.11 + * along a next pointer whose location within the node struct is 1.12 * denoted by \p loc_next. 1.13 * 1.14 - * If both \p begin and \p end are \c NULL, an empty list is assumed and this function returns \c NULL. 1.15 - * 1.16 - * @param begin a pointer to the begin node pointer (optional) 1.17 - * @param end a pointer to the end node pointer (optional) 1.18 - * @param loc_next the location of the \c next pointer (only required when \p end is \c NULL) 1.19 - * @return a pointer to the last node or \c NULL if the list is empty 1.20 + * @param begin a pointer to the begin node 1.21 + * @param loc_next the location of the \c next pointer 1.22 + * @return a pointer to the last node or \c NULL if \p begin is \c NULL 1.23 */ 1.24 -void *cx_linked_list_last(void **begin, void **end, ptrdiff_t loc_next); 1.25 +void *cx_linked_list_last(void *begin, ptrdiff_t loc_next); 1.26 1.27 /** 1.28 * Adds a new node to a linked list.