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 |
|
|
#include <stdarg.h> |
9 |
|
|
#include "my.h" |
10 |
|
|
#include "myformats.h" |
11 |
|
|
|
12 |
|
29 |
int flag_d(va_list list, formating_t *formating) |
13 |
|
|
{ |
14 |
|
29 |
size_t temp = va_arg(list, size_t); |
15 |
|
29 |
char *str_finale = specify_it_int(formating, temp); |
16 |
|
|
|
17 |
|
29 |
precise_it_int(str_finale, formating, temp); |
18 |
|
29 |
format_it_int(str_finale, formating, temp); |
19 |
|
29 |
my_putstrf(formating->fd, str_finale); |
20 |
|
29 |
return my_strlen(str_finale); |
21 |
|
|
} |
22 |
|
|
|