1
0
Fork 0

Added bubble sort algorithm

This commit is contained in:
wael 2021-09-06 17:49:01 +03:00
parent 267af2a93e
commit 6c165bb041
3 changed files with 11 additions and 1 deletions

View File

@ -9,4 +9,4 @@ typedef struct double_node {
/* Data. */
void *data;
} double_node_t;
#endif //DOUBLE_NODE_H
#endif /* DOUBLE_NODE_H */

View File

@ -0,0 +1,5 @@
/* This header defines the function for bubble sort. */
#ifndef BUBBLE_SORT_H
#define BUBBLE_SORT_H
void** bubble_sort(void** array, void (*comparison_function)());
#endif /* BUBBLE_SORT_H */

View File

@ -0,0 +1,5 @@
/* This header defines the function for bubble sort. */
#ifndef BUBBLE_SORT_H
#define BUBBLE_SORT_H
void** bubble_sort(void** array, void (*comparison_function)());
#endif /* BUBBLE_SORT_H */