GCC Code Coverage Report


Directory: ./
File: lib/my/my_show_word_array.c
Date: 2024-06-05 02:24:39
Exec Total Coverage
Lines: 7 7 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

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