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