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_d.c |
9 |
|
|
* @brief The file containing the flag_d function |
10 |
|
|
* @author Nicolas TORO |
11 |
|
|
*/ |
12 |
|
|
|
13 |
|
|
#include "myprintf.h" |
14 |
|
|
|
15 |
|
44 |
int flag_d(va_list list, formating_t *formating) |
16 |
|
|
{ |
17 |
|
44 |
size_t temp = va_arg(list, size_t); |
18 |
|
44 |
char *str_finale = specify_it_int(formating, temp); |
19 |
|
|
|
20 |
|
44 |
precise_it_int(str_finale, formating, temp); |
21 |
|
44 |
format_it_int(str_finale, formating, temp); |
22 |
|
44 |
return my_putstr_fd_free(str_finale, formating->fd); |
23 |
|
|
} |
24 |
|
|
|