debut ecritures fonctions clean et error
This commit is contained in:
@@ -1,48 +1,58 @@
|
||||
|
||||
#ifndef PUSH_SWAP_H
|
||||
# define PUSH_SWAP_H
|
||||
# include "libft.h"
|
||||
// # include "../libft/includes/libft.h"
|
||||
# include "../libft/includes/libft.h"
|
||||
# include <unistd.h> // read(), write(), sleep()
|
||||
# include <stdlib.h> // malloc(), free(), exit(), atoi()
|
||||
|
||||
|
||||
typedef struct s_list
|
||||
typedef struct s_stack
|
||||
{
|
||||
int n;
|
||||
struct s_list *next;
|
||||
} t_list;
|
||||
} t_stack;
|
||||
|
||||
void ps_error(int i);
|
||||
void ps_clean(t_stack *stack, int i);
|
||||
|
||||
/*
|
||||
** 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
|
||||
|
||||
Reference in New Issue
Block a user