-
Notifications
You must be signed in to change notification settings - Fork 0
/
push_swap_bonus.h
47 lines (42 loc) · 1.47 KB
/
push_swap_bonus.h
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* push_swap_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: raveriss <raveriss@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/23 17:56:17 by raveriss #+# #+# */
/* Updated: 2023/03/24 09:48:01 by raveriss ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PUSH_SWAP_BONUS_H
# define PUSH_SWAP_BONUS_H
# include <stdlib.h>
# include <unistd.h>
# include <limits.h>
typedef struct stack
{
int *a;
int *b;
int size_a;
int size_b;
int min;
int max;
} t_stack;
void sa(t_stack *t);
void sb(t_stack *t);
void ss(t_stack *t);
void pb(t_stack *t);
void pa(t_stack *t);
void ra(t_stack *t);
void rb(t_stack *t);
void rr(t_stack *t);
void rra(t_stack *t);
void rrb(t_stack *t);
void rrr(t_stack *t);
int check_arg(int argc, char **argv);
int is_sort(t_stack *t);
t_stack edit(int argc, char **argv);
int clean(t_stack *t);
long ft_atol(const char *nptr);
#endif