| 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 | 21 | void my_show_word_array(char *const *tab) | |
| 16 | { | ||
| 17 | 21 | int index_tab = 0; | |
| 18 | |||
| 19 | 1/2✗ Branch 0 not taken. ✓ Branch 1 taken 21 times. | 21 | if (tab == NULL) | 
| 20 | ✗ | return; | |
| 21 | 2/2✓ Branch 0 taken 36 times. ✓ Branch 1 taken 21 times. | 57 | while (tab[index_tab] != NULL) { | 
| 22 | 36 | my_putstr(tab[index_tab]); | |
| 23 | 36 | my_putchar('\n'); | |
| 24 | 36 | index_tab = index_tab + 1; | |
| 25 | } | ||
| 26 | } | ||
| 27 |