Function transmission_sys::tr_quickfindFirstK
source · pub unsafe extern "C" fn tr_quickfindFirstK(
base: *mut c_void,
nmemb: usize,
size: usize,
compar: Option<unsafe extern "C" fn(arg1: *const c_void, arg2: *const c_void) -> c_int>,
k: usize
)
Expand description
@brief moves the best k items to the first slots in the array. O(n)