NeoMutt  2022-04-29-323-g5fcc6c
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
37typedef int (*qsort_r_compar_t)(const void *a, const void *b, void *arg);
38
39void mutt_qsort_r(void *base, size_t nmemb, size_t size, qsort_r_compar_t compar, void *arg);
40
41#endif /* MUTT_LIB_QSORT_R_H */
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:76
int(* qsort_r_compar_t)(const void *a, const void *b, void *arg)
Prototype for generic comparison function, compatible with qsort_r()
Definition: qsort_r.h:37