Line | Branch | Exec | Source |
---|---|---|---|
1 | /* | ||
2 | ** EPITECH PROJECT, 2023 | ||
3 | ** my_printf | ||
4 | ** File description: | ||
5 | ** Flag to print a %c (a char) | ||
6 | */ | ||
7 | |||
8 | #include <stdarg.h> | ||
9 | #include "my.h" | ||
10 | #include "myformats.h" | ||
11 | |||
12 | 12 | void format_it_str(char *str_finale, | |
13 | formating_t *formating) | ||
14 | { | ||
15 | 12 | void (*format[])(char *, formating_t *) = | |
16 | {&format_moins_str, &format_plus_str, | ||
17 | &format_esp_str, &format_hash_str, &format_zero_str}; | ||
18 | |||
19 |
4/4✓ Branch 0 taken 5 times.
✓ Branch 1 taken 7 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 4 times.
|
12 | if (formating->id_ft == -1 && formating->id_wd != -1) |
20 | 1 | format[2](str_finale, formating); | |
21 |
2/2✓ Branch 0 taken 60 times.
✓ Branch 1 taken 12 times.
|
72 | for (int i = 0; i < 5; i++) { |
22 |
2/2✓ Branch 0 taken 7 times.
✓ Branch 1 taken 53 times.
|
60 | if (formating->id_ft == i) |
23 | 7 | format[i](str_finale, formating); | |
24 | } | ||
25 | 12 | return; | |
26 | } | ||
27 |