functions standardisees, annotees et readme en cours decriture

This commit is contained in:
hugogogo
2021-06-14 21:40:05 +02:00
parent 7a0f44c676
commit 5050e05816
17 changed files with 222 additions and 128 deletions

View File

@@ -12,11 +12,18 @@ typedef struct s_stack
struct s_stack *next;
} t_stack;
/*
** luke's algo
*/
int bubble_sort(t_stack **a, t_stack **b, t_list *solution);
/*
** pushswap.c
*/
int check_flag(int *ac, char ***av);
void is_valid(int ac, char **av);
t_stack *init_stack(int ac, char **av);
t_list *launch_algo(t_stack *stack);
/*
** stop.c
@@ -28,14 +35,13 @@ void ps_stop(t_stack *a, t_stack *b, t_list *lst, int i);
/*
** algo.c
*/
t_list *sort_algo(t_stack *stack);
void hugo_sort(t_stack **a, t_stack **b, t_list **lst);
/*
** print.c
*/
void fill_solution(t_stack *a, t_stack *b, t_list **lst, char *c);
void print_stack(t_stack *stack, char c);
void print_result(t_list *lst);
void print_result(t_list *lst, int i);
/*