NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
qsort_r.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_LIB_QSORT_R_H
24 #define MUTT_LIB_QSORT_R_H
25 
26 #include <stddef.h>
27 
28 typedef int (*qsort_r_compar_t)(const void *a, const void *b, void *arg);
29 
30 void mutt_qsort_r(void *base, size_t nmemb, size_t size, qsort_r_compar_t compar, void *arg);
31 
32 #endif /* MUTT_LIB_QSORT_R_H */
int(* qsort_r_compar_t)(const void *a, const void *b, void *arg)
Definition: qsort_r.h:28
void mutt_qsort_r(void *base, size_t nmemb, size_t size, qsort_r_compar_t compar, void *arg)
Sort an array, where the comparator has access to opaque data rather than requiring global variables...
Definition: qsort_r.c:68