-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_push_swap.h
More file actions
46 lines (42 loc) · 1.74 KB
/
Copy pathft_push_swap.h
File metadata and controls
46 lines (42 loc) · 1.74 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_push_swap.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dpenas-u <dpenas-u@student.42madrid> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/12 09:33:25 by dpenas-u #+# #+# */
/* Updated: 2022/04/12 13:45:29 by dpenas-u ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PUSH_SWAP_H
# define FT_PUSH_SWAP_H
typedef struct l
{
int a1;
int a2;
int a3;
int b1;
int b2;
int b3;
} t_l;
void ft_swapa(t_list **lst);
void ft_swapb(t_list **lst);
void ft_swapswap(t_list **lst1, t_list **lst2);
void ft_pusha(t_list **lst1, t_list **lst2);
void ft_pushb(t_list **lst1, t_list **lst2);
void ft_rotatea(t_list **lst);
void ft_rotateb(t_list **lst);
void ft_rotrot(t_list **lst1, t_list **lst2);
void ft_rrotatea(t_list **lst);
void ft_rrotateb(t_list **lst);
void ft_rrotrrot(t_list **lst1, t_list **lst2);
int ft_check_order_ascen(t_list *lst);
int ft_check_order_desc(t_list *lst);
int ft_check_arg(char *argv[]);
int ft_check_dup(char *argv[]);
void ft_create_list(char **l_argv, t_list **lst);
void ft_printf_list(t_list *lst);
void ft_sort_small(t_list **stack_a, t_list **stack_b);
void ft_sort_big(t_list **stack_a, t_list **stack_b);
#endif