installation des fichiers

This commit is contained in:
hugogogo
2021-06-09 15:00:17 +02:00
parent 57934e06b9
commit 57f12c91a6
4 changed files with 116 additions and 0 deletions

48
includes/pushswap.h Normal file
View File

@@ -0,0 +1,48 @@
#ifndef PUSH_SWAP_H
# define PUSH_SWAP_H
# include "libft.h"
// # include "../libft/includes/libft.h"
# include <unistd.h> // read(), write(), sleep()
# include <stdlib.h> // malloc(), free(), exit(), atoi()
typedef struct s_list
{
int n;
struct s_list *next;
} t_list;
/*
** swap
*/
int swap(t_list **list);
int sa();
int sb();
int ss();
/*
** push
*/
int push(t_list **dst, t_list **src);
int pa();
int pb();
int pp();
/*
** rotate
*/
int rotate(t_list **list);
int ra();
int rb();
int rr();
/*
** reverse rotate
*/
int reverse_rotate(t_list **list);
int rra();
int rrb();
int rrr();
#endif