-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrol_list_1.c
48 lines (42 loc) · 1.26 KB
/
control_list_1.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* control_list_1.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kakiba <kotto555555@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/29 15:01:28 by kakiba #+# #+# */
/* Updated: 2023/01/11 23:38:57 by kakiba ### ########.fr */
/* */
/* ************************************************************************** */
#include "pushswap.h"
int pa(t_dlist **a, t_dlist **b)
{
ft_printf("pa\n");
push(b, a);
return (0);
}
int pb(t_dlist **a, t_dlist **b)
{
ft_printf("pb\n");
push(a, b);
return (0);
}
int sa(t_dlist **a)
{
ft_printf("sa\n");
swap(a);
return (0);
}
int sb(t_dlist **b)
{
ft_printf("sb\n");
swap(b);
return (0);
}
int ra(t_dlist **a)
{
ft_printf("ra\n");
rotate(a);
return (0);
}