X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_13%2Fexo1%2Fsrc%2Fmain.c;h=9f23749fbc3b2def57ca83457ac762d44e426e0a;hb=34dd19e9551e120279afde8d75a1cb51181d7794;hp=315ed331a2007a350bef7fdc06cf70478041aee0;hpb=e40016767464ae5f361e1be20a9bbc6858878e5e;p=TD_C.git diff --git a/TP_13/exo1/src/main.c b/TP_13/exo1/src/main.c index 315ed33..9f23749 100644 --- a/TP_13/exo1/src/main.c +++ b/TP_13/exo1/src/main.c @@ -1,8 +1,26 @@ #include #include +#include "array.h" +#include "utils.h" +#include "io.h" + int main() { - printf("Hello world\n"); + int* tab = NULL; + const unsigned tab_size = 11; + tab = create_tab(tab, tab_size); + + printf("%d\n", tab_size); + + display_array(tab, tab_size); + + const unsigned tab_new_size = 20; + tab = resize_tab(tab, tab_new_size); + + printf("%d\n", tab_new_size); + + display_array(tab, tab_new_size); + free_tab(tab); exit(EXIT_SUCCESS); }