mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
14 lines
277 B
C
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
|