-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_moves_r.c
32 lines (28 loc) · 1.2 KB
/
ft_moves_r.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_r.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfrank <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/13 15:07:35 by lfrank #+# #+# */
/* Updated: 2023/03/13 15:23:44 by lfrank ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_ra(t_node **first_node_a)
{
ft_rotate(first_node_a);
write (1, "ra\n", 3);
}
void ft_rb(t_node **first_node_b)
{
ft_rotate(first_node_b);
write (1, "rb\n", 3);
}
void ft_rr(t_node **first_node_a, t_node **first_node_b)
{
ft_rotate(first_node_a);
ft_rotate(first_node_b);
write (1, "rr\n", 3);
}