-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_moves_s.c
32 lines (28 loc) · 1.19 KB
/
ft_moves_s.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_s.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfrank <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/13 15:07:40 by lfrank #+# #+# */
/* Updated: 2023/03/13 15:23:17 by lfrank ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_sa(t_node **first_node_a)
{
ft_swap(first_node_a);
write (1, "sa\n", 3);
}
void ft_sb(t_node **first_node_b)
{
ft_swap(first_node_b);
write (1, "sb\n", 3);
}
void ft_ss(t_node **first_node_a, t_node **first_node_b)
{
ft_swap(first_node_a);
ft_swap(first_node_b);
write (1, "ss\n", 3);
}