mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 08:41:58 +00:00
Merge branch 'master' into radix
This commit is contained in:
22
headers/flags.h
Normal file
22
headers/flags.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* flags.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/01/07 13:05:52 by mteriier #+# #+# */
|
||||
/* Updated: 2026/01/07 13:05:53 by mteriier ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef FLAGS_H
|
||||
# define FLAGS_H
|
||||
|
||||
void simple(t_stacks *piles);
|
||||
void medium(t_stacks *piles);
|
||||
void complex(t_stacks *piles);
|
||||
void adaptive(t_stacks *piles);
|
||||
void flags(int pos, char **argv, t_stacks *piles);
|
||||
|
||||
#endif
|
||||
@@ -13,8 +13,8 @@
|
||||
#ifndef PARSING_H
|
||||
# define PARSING_H
|
||||
|
||||
int ft_atoi(const char *nptr);
|
||||
t_stacks *init_big_stacks2(int *tab, int len);
|
||||
int ft_atoi(const char *nptr);
|
||||
t_stacks *init_big_stacks(int argc, char **argv);
|
||||
int ft_strncmp(const char *s1, const char *s2, int n);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,6 +45,7 @@ t_stack *new_stack(int value);
|
||||
void stack_add_back(t_stack **stack, t_stack *new);
|
||||
void stack_add_front(t_stack **stack, t_stack *new);
|
||||
void stack_clear_all(t_stack *stack, t_stack *first);
|
||||
void free_all(t_stacks *piles);
|
||||
/* STACKS LEN FILES */
|
||||
int stack_a_len(t_stacks *stacks);
|
||||
int stack_b_len(t_stacks *stacks);
|
||||
|
||||
Reference in New Issue
Block a user