-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpush_swap.h
44 lines (38 loc) · 1.42 KB
/
push_swap.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: viforget <viforget@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/10 15:14:25 by viforget #+# #+# */
/* Updated: 2020/02/03 17:11:43 by lhenneca ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PUSH_SWAP_H
# define PUSH_SWAP_H
/*
** INCLUDE
*/
# include "libft/libft.h"
# include <stdarg.h>
# include <limits.h>
typedef struct s_pile
{
int *tab;
size_t len;
int max;
int min;
} t_pile;
//instructions.c
int swap(int *tab, int len);
int push(int *a, int *b, int lena, int lenb);
int rot(int *a, int len);
int rot_rev(int *a, int len);
int ft_is_number(char *n);
int ft_isin(int *a, int n, int i);
int ft_read(char *argv[], t_pile *a);
int init_stack(t_pile *p, size_t len, char *argv[]);
int error(void);
//push_swap.c
#endif