NeoMutt  2024-02-01-23-g345d7b
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
qsort_r.h
Go to the documentation of this file.
1
24#ifndef MUTT_MUTT_QSORT_R_H
25#define MUTT_MUTT_QSORT_R_H
26
27#include <stddef.h>
28
41typedef int (*sort_t)(const void *a, const void *b, void *sdata);
42
43void mutt_qsort_r(void *base, size_t nmemb, size_t size, sort_t compar, void *sdata);
44
45#endif /* MUTT_MUTT_QSORT_R_H */
int(* sort_t)(const void *a, const void *b, void *sdata)
Definition: qsort_r.h:41
void mutt_qsort_r(void *base, size_t nmemb, size_t size, sort_t compar, void *sdata)
Sort an array, where the comparator has access to opaque data rather than requiring global variables.
Definition: qsort_r.c:67