X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_13%2Fexo1%2Fsrc%2Fmain.c;h=658930e3c75be49a87ef13a9735a653c8576941d;hb=34f864c6720b5e480db66430a218e2fd54743ce7;hp=68b30087ae455f71e44db62e49cbb62f8161bac1;hpb=33b9c6461d00f013d692dde3c3f79f0b002ce564;p=TD_C.git diff --git a/TP_13/exo1/src/main.c b/TP_13/exo1/src/main.c index 68b3008..658930e 100644 --- a/TP_13/exo1/src/main.c +++ b/TP_13/exo1/src/main.c @@ -1,9 +1,24 @@ +#include #include -#include "macros.h" +#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); - return 0; + printf("%d\n", tab_size); + + display_array(tab, tab_size); + + const unsigned tab_new_size = 20; + tab = resize_tab(tab, tab_new_size); + + display_array(tab, tab_new_size); + + free_tab(tab); + exit(EXIT_SUCCESS); }