bcachefs-tools/include/linux/sort.h

14 lines
277 B
C
Raw Normal View History

2017-01-08 12:13:18 +03:00
#ifndef _LINUX_SORT_H
#define _LINUX_SORT_H
2018-12-20 04:34:24 +03:00
#include <stdlib.h>
2017-01-08 12:13:18 +03:00
2018-12-20 04:34:24 +03:00
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);
}
2017-01-08 12:13:18 +03:00
#endif