| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* | ||
| 2 | ** EPITECH PROJECT, 2023 | ||
| 3 | ** my_show_word_array | ||
| 4 | ** File description: | ||
| 5 | ** Prints all word in an array (tab) | ||
| 6 | */ | ||
| 7 | /** | ||
| 8 | * @file my_show_word_array.c | ||
| 9 | * @brief The file containing the my_show_word_array function | ||
| 10 | * @author Nicolas TORO | ||
| 11 | */ | ||
| 12 | |||
| 13 | #include "my.h" | ||
| 14 | |||
| 15 | 6 | void my_show_word_array(char *const *tab) | |
| 16 | { | ||
| 17 | 6 | int index_tab = 0; | |
| 18 | |||
| 19 |
2/2✓ Branch 0 taken 1 times.
✓ Branch 1 taken 5 times.
|
6 | if (tab == NULL) |
| 20 | 1 | return; | |
| 21 |
2/2✓ Branch 0 taken 11 times.
✓ Branch 1 taken 5 times.
|
16 | while (tab[index_tab] != NULL) { |
| 22 | 11 | my_putstr(tab[index_tab]); | |
| 23 | 11 | my_putchar('\n'); | |
| 24 | 11 | index_tab = index_tab + 1; | |
| 25 | } | ||
| 26 | } | ||
| 27 |