Files
42_INT_06_pushwap/includes/pushswap.h
2021-06-10 14:20:38 +02:00

59 lines
691 B
C

#ifndef PUSH_SWAP_H
# define PUSH_SWAP_H
# include "../libft/includes/libft.h"
# include <unistd.h> // read(), write(), sleep()
# include <stdlib.h> // malloc(), free(), exit(), atoi()
typedef struct s_stack
{
int n;
struct s_list *next;
} 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