| 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 | #include <stdlib.h> | ||
| 9 | #include "my.h" | ||
| 10 | |||
| 11 | 2 | int my_show_word_array(char *const *tab) | |
| 12 | { | ||
| 13 | 2 | int index_tab = 0; | |
| 14 | |||
| 15 |
2/2✓ Branch 0 taken 4 times.
✓ Branch 1 taken 2 times.
|
6 | while (tab[index_tab] != NULL) { |
| 16 | 4 | my_putstr(tab[index_tab]); | |
| 17 | 4 | my_putchar('\n'); | |
| 18 | 4 | index_tab = index_tab + 1; | |
| 19 | } | ||
| 20 | 2 | return 0; | |
| 21 | } | ||
| 22 |