src/cx/linked_list.h

changeset 1374
4dceda670b05
parent 1367
6b3d52dd176e
equal deleted inserted replaced
1373:a6aaa77b6809 1374:4dceda670b05
152 * @param loc_data the location of the @c data pointer within your node struct 152 * @param loc_data the location of the @c data pointer within your node struct
153 * @param cmp_func a compare function to compare @p elem against the node data 153 * @param cmp_func a compare function to compare @p elem against the node data
154 * @param elem a pointer to the element to find 154 * @param elem a pointer to the element to find
155 * @param found_index an optional pointer where the index of the found node 155 * @param found_index an optional pointer where the index of the found node
156 * (given that @p start has index 0) is stored 156 * (given that @p start has index 0) is stored
157 * @return the index of the element, if found - unspecified if not found 157 * @return a pointer to the found node or @c NULL if no matching node was found
158 */ 158 */
159 cx_attr_nonnull_arg(1, 4, 5) 159 cx_attr_nonnull_arg(1, 4, 5)
160 cx_attr_export 160 cx_attr_export
161 void *cx_linked_list_find( 161 void *cx_linked_list_find(
162 const void *start, 162 const void *start,

mercurial