src/cx/linked_list.h

changeset 699
35b2b99ee523
parent 677
b09aae58bba4
child 759
475335643af4
     1.1 --- a/src/cx/linked_list.h	Sat Apr 22 14:09:46 2023 +0200
     1.2 +++ b/src/cx/linked_list.h	Sat Apr 22 14:21:02 2023 +0200
     1.3 @@ -118,9 +118,9 @@
     1.4   * @param loc_data the location of the \c data pointer within your node struct
     1.5   * @param cmp_func a compare function to compare \p elem against the node data
     1.6   * @param elem a pointer to the element to find
     1.7 - * @return the index of the element or a past-one index if the element could not be found
     1.8 + * @return the index of the element or a negative value if it could not be found
     1.9   */
    1.10 -size_t cx_linked_list_find(
    1.11 +ssize_t cx_linked_list_find(
    1.12          void const *start,
    1.13          ptrdiff_t loc_advance,
    1.14          ptrdiff_t loc_data,

mercurial