Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
** EPITECH PROJECT, 2023 |
3 |
|
|
** my_printf |
4 |
|
|
** File description: |
5 |
|
|
** Prints a formating structure (formating) in stdout |
6 |
|
|
*/ |
7 |
|
|
/** |
8 |
|
|
* @file my_show_formating.c |
9 |
|
|
* @brief The file containing the my_show_formating function |
10 |
|
|
* @author Nicolas TORO |
11 |
|
|
*/ |
12 |
|
|
|
13 |
|
|
#include "myprintf.h" |
14 |
|
|
|
15 |
|
1 |
void my_show_formating(formating_t *formating) |
16 |
|
|
{ |
17 |
|
1 |
my_putstr("Le formatage du flag est le suivant :"); |
18 |
|
1 |
my_putstr("\nFORMATAGE: "); |
19 |
|
1 |
my_putnbr(formating->id_ft); |
20 |
|
1 |
my_putstr("\nWIDHT: "); |
21 |
|
1 |
my_putnbr(formating->id_wd); |
22 |
|
1 |
my_putstr("\nPRECISION: "); |
23 |
|
1 |
my_putnbr(formating->id_prc); |
24 |
|
1 |
my_putstr("\nPRECISION NUMBER: "); |
25 |
|
1 |
my_putnbr(formating->id_nb); |
26 |
|
1 |
my_putstr("\nSPECIFIER: "); |
27 |
|
1 |
my_putnbr(formating->id_sp); |
28 |
|
1 |
my_putstr("\nFORMAT FINALE: "); |
29 |
|
1 |
my_putstr(formating->final_format); |
30 |
|
1 |
my_putstr("\nLE FLAG: "); |
31 |
|
1 |
my_putchar(formating->flag); |
32 |
|
1 |
my_putstr("\nNEXT CHARA: "); |
33 |
|
1 |
my_putchar(formating->next_chara); |
34 |
|
1 |
my_putchar('\n'); |
35 |
|
1 |
} |
36 |
|
|
|