Added bubble sort algorithm
This commit is contained in:
parent
267af2a93e
commit
6c165bb041
|
@ -9,4 +9,4 @@ typedef struct double_node {
|
|||
/* Data. */
|
||||
void *data;
|
||||
} double_node_t;
|
||||
#endif //DOUBLE_NODE_H
|
||||
#endif /* DOUBLE_NODE_H */
|
||||
|
|
|
@ -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 */
|
|
@ -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 */
|
Loading…
Reference in New Issue