| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* | ||
| 2 | ** EPITECH PROJECT, 2023 | ||
| 3 | ** my_printf | ||
| 4 | ** File description: | ||
| 5 | ** Flag to print a %s (a string) | ||
| 6 | */ | ||
| 7 | |||
| 8 | #include <stdarg.h> | ||
| 9 | #include "my.h" | ||
| 10 | #include "myformats.h" | ||
| 11 | |||
| 12 | 12 | int flag_s(va_list list, formating_t *formating) | |
| 13 | { | ||
| 14 | 12 | char *temp = va_arg(list, char *); | |
| 15 | 12 | char temp2[5000] = {0}; | |
| 16 | |||
| 17 | 12 | my_strcat(temp2, temp); | |
| 18 | 12 | format_it_str(temp2, formating); | |
| 19 | 12 | my_putstrf(formating->fd, temp2); | |
| 20 | 12 | return my_strlen(temp2); | |
| 21 | } | ||
| 22 |