diff -r 7345ee0a0301 -r 35b2b99ee523 src/cx/linked_list.h --- a/src/cx/linked_list.h Sat Apr 22 14:09:46 2023 +0200 +++ b/src/cx/linked_list.h Sat Apr 22 14:21:02 2023 +0200 @@ -118,9 +118,9 @@ * @param loc_data the location of the \c data pointer within your node struct * @param cmp_func a compare function to compare \p elem against the node data * @param elem a pointer to the element to find - * @return the index of the element or a past-one index if the element could not be found + * @return the index of the element or a negative value if it could not be found */ -size_t cx_linked_list_find( +ssize_t cx_linked_list_find( void const *start, ptrdiff_t loc_advance, ptrdiff_t loc_data,