aboutsummaryrefslogtreecommitdiffstats
path: root/sort.h
blob: 5aac3224b8e59641aa747cad2ba94547a2532067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * sort.h
 * decleration of different sort operations
 *
 * insertion_sort
 * merge_sort
 * quick_sort
 * heap_sort
 * bucket_sort
 * counting_sort
 * radix_sort
 *
 * Erik Liodden
 */

#ifndef SORT_H
#define SORT_H

#include "structure.h"

void insertion_sort(void *base, size_t nel, size_t width,
		int (*compar)(const void *, const void *));
void heap_sort(void *base, size_t nel, size_t width,
		int (*compar)(const void *, const void *));
void quick_sort(void *base, size_t nel, size_t width,
		int (*compar)(const void *, const void *));


#endif  /* SORT_H */