[][src]Function avr_libc::qsort

pub unsafe extern "C" fn qsort(
    __base: *mut c_void,
    __nmemb: size_t,
    __size: size_t,
    __compar: __compar_fn_t
)

The qsort() function is a modified partition-exchange sort, or quicksort.

The qsort() function sorts an array of \c nmemb objects, the initial member of which is pointed to by \c base. The size of each object is specified by \c size. The contents of the array base are sorted in ascending order according to a comparison function pointed to by \c compar, which requires two arguments pointing to the objects being compared.

The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.