GCC Code Coverage Report


Directory: ./
File: lib/my/my_printf/flag_i.c
Date: 2024-06-05 00:34:38
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_printf
4 ** File description:
5 ** Flag to print a %i (an int)
6 */
7 /**
8 * @file flag_i.c
9 * @brief The file containing the flag_i function
10 * @author Nicolas TORO
11 */
12
13 #include "myprintf.h"
14
15 10 int flag_i(va_list list, formating_t *formating)
16 {
17 10 size_t temp = va_arg(list, size_t);
18 10 char *str_finale = specify_it_int(formating, temp);
19
20 10 precise_it_int(str_finale, formating, temp);
21 10 format_it_int(str_finale, formating, temp);
22 10 return my_putstr_fd_free(str_finale, formating->fd);
23 }
24