1
0
Fork 0

Fix merge sort header.

This commit is contained in:
wael 2021-10-14 12:47:14 +03:00
parent c723ad32bf
commit 9c2944fec2
1 changed files with 5 additions and 8 deletions

View File

@ -1,9 +1,6 @@
/* This header defines the functions for merge sort. */
#ifndef QUICK_SORT_H
#define QUICK_SORT_H
#include <aio.h>
/* This is the standard (<) comparison function. */
int standard_compare_quick_sort(const void* first, const void* second);
/* The quicksort function's definition. */
void** quick_sort(void** array, int (*comparison_function)(const void*, const void*), const size_t length, const size_t size, const int copy);
#endif /* QUICK_SORT_H */
#ifndef MERGE_SORT_H
#define MERGE_SORT_H
/* The merge sort function's definition. */
void** merge_sort(void** array, int (*comparison_function)(const void*, const void*), const size_t length, const size_t size, const int copy);
#endif /* MERGE_SORT_H */