From: Lukas Jiriste Date: Fri, 23 Feb 2024 11:25:52 +0000 (+0100) Subject: Use newline as an output separator instead of space X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=113fb7210d3acbc7de9d1a04e1cbf23f4c0c7f15;p=42%2Fpush_swap.git Use newline as an output separator instead of space --- diff --git a/src/prints.c b/src/prints.c index 9fe9b5a..7ff4704 100644 --- a/src/prints.c +++ b/src/prints.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/15 14:42:01 by ljiriste #+# #+# */ -/* Updated: 2024/02/15 14:50:40 by ljiriste ### ########.fr */ +/* Updated: 2024/02/23 12:19:26 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,28 +23,28 @@ char target_to_char(t_target target, char both) void print_push(t_stacks *s, t_target target) { - ft_printf("p%c ", target_to_char(target, 'p')); + ft_printf("p%c\n", target_to_char(target, 'p')); action_push(s, target); return ; } void print_rotate(t_stacks *s, t_target target) { - ft_printf("r%c ", target_to_char(target, 'r')); + ft_printf("r%c\n", target_to_char(target, 'r')); action_rotate(s, target); return ; } void print_reverse_rotate(t_stacks *s, t_target target) { - ft_printf("rr%c ", target_to_char(target, 'r')); + ft_printf("rr%c\n", target_to_char(target, 'r')); action_reverse_rotate(s, target); return ; } void print_swap(t_stacks *s, t_target target) { - ft_printf("s%c ", target_to_char(target, 's')); + ft_printf("s%c\n", target_to_char(target, 's')); action_swap(s, target); return ; }