all flags setup, some fixes is needed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user