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

Go to the source code of this file.

Functions

VLC_EXPORT 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()

VLC_EXPORT 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, and state.

Referenced by vlc_loaddir(), and vlc_playlist_Sort().