NeoMutt
2024-11-14-34-g5aaf0d
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
41
typedef
int (*
sort_t
)(
const
void
*a,
const
void
*b,
void
*sdata);
42
43
void
mutt_qsort_r
(
void
*base,
size_t
nmemb,
size_t
size,
sort_t
compar,
void
*sdata);
44
45
#endif
/* MUTT_MUTT_QSORT_R_H */
sort_t
int(* sort_t)(const void *a, const void *b, void *sdata)
Definition:
qsort_r.h:41
mutt_qsort_r
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