]> git.sesse.net Git - bcachefs-tools-debian/blob - c_src/include/linux/sort.h
rust: bump rpassword to v7.x
[bcachefs-tools-debian] / c_src / include / linux / sort.h
1 #ifndef _LINUX_SORT_H
2 #define _LINUX_SORT_H
3
4 #include <stdlib.h>
5
6 static inline void sort(void *base, size_t num, size_t size,
7                         int (*cmp_func)(const void *, const void *),
8                         void (*swap_func)(void *, void *, int size))
9 {
10         return qsort(base, num, size, cmp_func);
11 }
12
13 #endif