a68e73cb2cbf5a1b87031357c576e11eb9521993
10 unsigned tab_size
= 0;
14 printf("=== Saisie initiale ===\n\n");
15 tab
= prompt_array(tab
, &tab_size
);
18 display_choice_menu();
19 errno
= prompt_value("Choix?", &choice
);
20 handle_prompt_error(errno
, tab
);
21 if (1 > choice
|| 8 < choice
) {
22 printf("\nFaire un choix compris entre 1 et 8\n");
27 tab
= do_concat(tab
, &tab_size
);
30 do_sort(tab
, tab_size
);
33 display_array(tab
, tab_size
);
36 do_count(tab
, tab_size
);
39 printf("\nLe nombre d'entiers pairs dans le tableau est %d\n", count_tab_criteria(tab
, tab_size
, is_even
));
42 printf("\nLe nombre d'entiers impairs dans le tableau est %d\n", count_tab_criteria(tab
, tab_size
, is_odd
));
45 do_resize(tab
, &tab_size
);
48 /* do nothing, unused code path */
51 } while (choice
!= 8);