ucx/cx/linked_list.h

changeset 748
49a284f61e8c
parent 747
efbd59642577
equal deleted inserted replaced
747:efbd59642577 748:49a284f61e8c
116 * @param start a pointer to the start node 116 * @param start a pointer to the start node
117 * @param loc_advance the location of the pointer to advance 117 * @param loc_advance the location of the pointer to advance
118 * @param loc_data the location of the \c data pointer within your node struct 118 * @param loc_data the location of the \c data pointer within your node struct
119 * @param cmp_func a compare function to compare \p elem against the node data 119 * @param cmp_func a compare function to compare \p elem against the node data
120 * @param elem a pointer to the element to find 120 * @param elem a pointer to the element to find
121 * @return the index of the element or a past-one index if the element could not be found 121 * @return the index of the element or a negative value if it could not be found
122 */ 122 */
123 size_t cx_linked_list_find( 123 ssize_t cx_linked_list_find(
124 void const *start, 124 void const *start,
125 ptrdiff_t loc_advance, 125 ptrdiff_t loc_advance,
126 ptrdiff_t loc_data, 126 ptrdiff_t loc_data,
127 cx_compare_func cmp_func, 127 cx_compare_func cmp_func,
128 void const *elem 128 void const *elem

mercurial