-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_moves_rr.c
32 lines (28 loc) · 1.24 KB
/
ft_moves_rr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_moves_rr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfrank <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/13 15:07:38 by lfrank #+# #+# */
/* Updated: 2023/03/13 15:23:38 by lfrank ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_rra(t_node **first_node_a)
{
ft_reverse_rotate(first_node_a);
write (1, "rra\n", 4);
}
void ft_rrb(t_node **first_node_b)
{
ft_reverse_rotate(first_node_b);
write (1, "rrb\n", 4);
}
void ft_rrr(t_node **first_node_a, t_node **first_node_b)
{
ft_reverse_rotate(first_node_a);
ft_reverse_rotate(first_node_b);
write (1, "rrr\n", 4);
}