Move callback functions into the same file
[TD_C.git] / TP_13 / exo1 / lib / array.h
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b31cbc06b7c881c0a2a29741fda597fc2df47024 100644 (file)
@@ -0,0 +1,16 @@
+#ifndef ARRAY_H
+#define ARRAY_H
+
+#include <stdbool.h>
+
+#include "sort.h"
+
+int* create_tab(int tab[], unsigned tab_size);
+void free_tab(int tab[]);
+int* concat_tab(int tab1[], unsigned tab_size1, int tab2[], unsigned tab_size2);
+int* resize_tab(int tab[], unsigned old_tab_size, unsigned new_tab_size);
+unsigned count_tab_element(int tab[], unsigned tab_size, int element);
+unsigned count_tab_criteria(int tab[], unsigned tab_size, c_criteria_cb c_criteria);
+void sort_tab(int tab[], unsigned tab_size, s_criteria_cb sort_criteria);
+
+#endif /* ARRAY_H */