summaryrefslogtreecommitdiff
path: root/include/linux/sort.h
blob: afea044576e3e8799c9312b5a13710a91d9546f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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