GCC Code Coverage Report


Directory: ./
File: lib/my/flags/flag_bigs.c
Date: 2024-06-05 00:29:21
Exec Total Coverage
Lines: 9 9 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_printf
4 ** File description:
5 ** Flag to print a %S (an array of string)
6 */
7
8 #include <stdarg.h>
9 #include <stddef.h>
10 #include "my.h"
11 #include "myformats.h"
12
13 1 int flag_bigs(va_list list, formating_t *formating)
14 {
15 1 char **temp = va_arg(list, char **);
16 1 int len = 0;
17 1 int index_temp = 0;
18
19 1 my_show_word_array(temp);
20
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 times.
3 while (temp[index_temp] != NULL) {
21 2 len = len + my_strlen(temp[index_temp]) + 1;
22 2 index_temp = index_temp + 1;
23 }
24 1 return len;
25 }
26