Libical API Documentation 3.1
qsort_gen.h
Go to the documentation of this file.
1/*======================================================================
2 FILE: qsort_gen.h
3
4 SPDX-FileCopyrightText: 2018, Markus Minichmayr <markus@tapkey.com>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7
8 The Initial Developer of the Original Code is Markus Minichmayr.
9======================================================================*/
10
11#ifndef QSORT_GEN_H
12#define QSORT_GEN_H
13
33void qsort_gen(void *list, size_t nitems,
34 int(*compar)(const void *, size_t, size_t),
35 void(*swapr)(void *, size_t, size_t));
36
43void qsort_gen_memswap(void *m1, void *m2, size_t size);
44
45#endif /* QSORT_GEN_H */
void qsort_gen_memswap(void *m1, void *m2, size_t size)
Swaps two arbitrary blocks of memory.
Definition: qsort_gen.c:24
void qsort_gen(void *list, size_t nitems, int(*compar)(const void *, size_t, size_t), void(*swapr)(void *, size_t, size_t))
Sort an arbitrary list of items using the qsort algorithm. interpreted by this function but passed to...
Definition: qsort_gen.c:56