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 |
|
|
#include "my.h" |
9 |
|
|
#include "myformats.h" |
10 |
|
|
|
11 |
|
1 |
void my_show_formating(formating_t *formating) |
12 |
|
|
{ |
13 |
|
1 |
my_putstr("Le formatage du flag est le suivant :"); |
14 |
|
1 |
my_putstr("\nFORMATAGE: "); |
15 |
|
1 |
my_put_nbr(formating->id_ft); |
16 |
|
1 |
my_putstr("\nWIDHT: "); |
17 |
|
1 |
my_put_nbr(formating->id_wd); |
18 |
|
1 |
my_putstr("\nPRECISION: "); |
19 |
|
1 |
my_put_nbr(formating->id_prc); |
20 |
|
1 |
my_putstr("\nPRECISION NUMBER: "); |
21 |
|
1 |
my_put_nbr(formating->id_nb); |
22 |
|
1 |
my_putstr("\nSPECIFIER: "); |
23 |
|
1 |
my_put_nbr(formating->id_sp); |
24 |
|
1 |
my_putstr("\nFORMAT FINALE: "); |
25 |
|
1 |
my_putstr(formating->final_format); |
26 |
|
1 |
my_putstr("\nLE FLAG: "); |
27 |
|
1 |
my_putchar(formating->flag); |
28 |
|
1 |
my_putstr("\nNEXT CHARA: "); |
29 |
|
1 |
my_putchar(formating->next_chara); |
30 |
|
1 |
my_putchar('\n'); |
31 |
|
1 |
} |
32 |
|
|
|