GCC Code Coverage Report


Directory: ./
File: lib/my/my_printf/flag_bigs.c
Date: 2024-06-05 00:36:48
Exec Total Coverage
Lines: 8 8 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 * @file flag_bigs.c
9 * @brief The file containing the flag_bigs function
10 * @author Nicolas TORO
11 */
12
13 #include "myprintf.h"
14
15 4 int flag_bigs(va_list list, formating_t *formating)
16 {
17 4 char **temp = va_arg(list, char **);
18 4 int len = 0;
19
20
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 4 times.
6 for (int index = 0; temp[index] != NULL; index++) {
21 2 len = len + my_putstr_fd(temp[index], 1);
22 2 my_putchar('\n');
23 2 len = len + 1;
24 }
25 4 return len;
26 }
27