bcachefs-tools/include/linux/sort.h
Kent Overstreet b5fd066153 Move c_src dirs back to toplevel
We just wanted c sourcefiles out of the top level, not c source
directories.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-16 17:17:23 -05:00

14 lines
277 B
C

#ifndef _LINUX_SORT_H
#define _LINUX_SORT_H
#include <stdlib.h>
static inline void sort(void *base, size_t num, size_t size,
int (*cmp_func)(const void *, const void *),
void (*swap_func)(void *, void *, int size))
{
return qsort(base, num, size, cmp_func);
}
#endif