Move callback functions into the same file
[TD_C.git] / TP_13 / exo1 / lib / array.h
1 #ifndef ARRAY_H
2 #define ARRAY_H
3
4 #include <stdbool.h>
5
6 #include "sort.h"
7
8 int* create_tab(int tab[], unsigned tab_size);
9 void free_tab(int tab[]);
10 int* concat_tab(int tab1[], unsigned tab_size1, int tab2[], unsigned tab_size2);
11 int* resize_tab(int tab[], unsigned old_tab_size, unsigned new_tab_size);
12 unsigned count_tab_element(int tab[], unsigned tab_size, int element);
13 unsigned count_tab_criteria(int tab[], unsigned tab_size, c_criteria_cb c_criteria);
14 void sort_tab(int tab[], unsigned tab_size, s_criteria_cb sort_criteria);
15
16 #endif /* ARRAY_H */