VLC 4.0.0-dev
vlc_sort.h File Reference
Include dependency graph for vlc_sort.h:

Go to the source code of this file.

Functions

void vlc_qsort (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)
 Sort an array with reentrancy, following the upcoming POSIX prototype. More...
 

Function Documentation

◆ vlc_qsort()

void vlc_qsort ( void *  base,
size_t  nmemb,
size_t  size,
int(*)(const void *, const void *, void *)  compar,
void *  arg 
)

Sort an array with reentrancy, following the upcoming POSIX prototype.

cf. POSIX qsort_r

References arg, compar, compar_wrapper(), and state.

Referenced by vlc_loaddir(), and vlc_playlist_Sort().