all flags setup, some fixes is needed

This commit is contained in:
David Gailleton
2025-11-20 16:54:00 +01:00
parent bd1c66d86f
commit 24887c810c
12 changed files with 181 additions and 63 deletions

View File

@@ -6,7 +6,7 @@
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/17 11:56:36 by dgaillet #+# #+# */
/* Updated: 2025/11/19 19:42:20 by dgaillet ### ########lyon.fr */
/* Updated: 2025/11/20 14:40:30 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
@@ -19,6 +19,7 @@ int print_char(t_arg *arg, char c)
int count;
count = 0;
count += print_chars(arg->padding - 1, ' ');
if (!arg->minus && arg->zero)
count += print_chars(arg->zero - 1, ' ');
count += write(1, &c, 1);