X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=TP_13%2Fexo1%2Flib%2Farray.h;h=b31cbc06b7c881c0a2a29741fda597fc2df47024;hb=0b8cccedf6a443a909844a480ab9b3c6908a073d;hp=3bc6573f4af22f8ec7b758027a6d32350cd5f542;hpb=e40016767464ae5f361e1be20a9bbc6858878e5e;p=TD_C.git diff --git a/TP_13/exo1/lib/array.h b/TP_13/exo1/lib/array.h index 3bc6573..b31cbc0 100644 --- a/TP_13/exo1/lib/array.h +++ b/TP_13/exo1/lib/array.h @@ -1,11 +1,16 @@ #ifndef ARRAY_H #define ARRAY_H -int create_tab(int tab[], unsigned tab_size); +#include + +#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 tab_dest[]); -int resize_tab(int tab[], unsigned tab_size); -int count_tab_element(int tab[], unsigned tab_size, int element); -void sort_tab(int tab[], unsigned tab_size, criteria_cb criteria); +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 */