TP 13 exo1: Implement more asked features and test them
[TD_C.git] / TP_13 / exo1 / src / main.c
index 41facd6323e042f6cfea518592381c27b4066826..ea4abc39e67b739c04fcba45a5f142a0f2a31491 100644 (file)
@@ -7,17 +7,15 @@
 
 int main() {
     int* tab = NULL;
-    unsigned tab_size = 11;
-    tab = create_tab(tab, tab_size);
+    unsigned tab_size = 0;
+
+    tab = prompt_array(tab, &tab_size);
 
     printf("%d\n", tab_size);
 
     display_array(tab, tab_size);
 
-    tab_size = 20;
-    tab = resize_tab(tab, tab_size);
-
-    printf("%d\n", tab_size);
+    sort_tab(tab, tab_size, ascending_and_odd);
 
     display_array(tab, tab_size);