/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/* ************************************************************************** */
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 ;
}