Function list_attributes_comparator

Source
pub unsafe extern "C" fn list_attributes_comparator(
    l: *mut list_t,
    comparator_fun: element_comparator,
) -> c_int
Expand description

set the comparator function for list elements.

Comparator functions are used for searching and sorting. If NULL is passed as reference to the function, the comparator is disabled.

@param l list to operate @param comparator_fun pointer to the actual comparator function @return 0 if the attribute was successfully set; -1 otherwise

@see element_comparator()