diff -r 8168e16cd1e9 -r 227c2eabbef8 src/cx/linked_list.h --- a/src/cx/linked_list.h Sun Oct 03 16:02:53 2021 +0200 +++ b/src/cx/linked_list.h Sun Oct 03 16:30:47 2021 +0200 @@ -74,19 +74,15 @@ /** * Finds the last node in a linked list. * - * If a pointer to \p end is provided, the result is just \c *end. - * Otherwise, this function starts with the pointer denoted by \c *begin and - * traverses the list along a next pointer whose location within the node struct is + * The function starts with the pointer denoted by \p begin and traverses the list + * along a next pointer whose location within the node struct is * denoted by \p loc_next. * - * If both \p begin and \p end are \c NULL, an empty list is assumed and this function returns \c NULL. - * - * @param begin a pointer to the begin node pointer (optional) - * @param end a pointer to the end node pointer (optional) - * @param loc_next the location of the \c next pointer (only required when \p end is \c NULL) - * @return a pointer to the last node or \c NULL if the list is empty + * @param begin a pointer to the begin node + * @param loc_next the location of the \c next pointer + * @return a pointer to the last node or \c NULL if \p begin is \c NULL */ -void *cx_linked_list_last(void **begin, void **end, ptrdiff_t loc_next); +void *cx_linked_list_last(void *begin, ptrdiff_t loc_next); /** * Adds a new node to a linked list.