bsearch

Function bsearch 

Source
pub unsafe extern "C" fn bsearch(
    __key: *const c_void,
    __base: *const c_void,
    __nmemb: usize,
    __size: usize,
    __compar: __compar_fn_t,
) -> *mut c_void
Expand description

Do a binary search for KEY in BASE, which consists of NMEMB elements of SIZE bytes each, using COMPAR to perform the comparisons.