mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
finish the checker error
This commit is contained in:
22
headers/check_error.h
Normal file
22
headers/check_error.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* check_error.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/01/09 10:16:35 by mteriier #+# #+# */
|
||||
/* Updated: 2026/01/09 10:16:37 by mteriier ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef CHECK_ERROR_H
|
||||
# define CHECK_ERROR_H
|
||||
|
||||
int verif_flag(char **tab, int mod);
|
||||
int check_error(char **tab, int mod);
|
||||
int verif_is_digit(char **tab, int mod);
|
||||
int verif_overflow(char **tab, int mod);
|
||||
int verif_double(char **tab, int mod);
|
||||
|
||||
#endif
|
||||
@@ -17,6 +17,7 @@
|
||||
# include "push_swap.h"
|
||||
|
||||
int ft_atoi(const char *nptr);
|
||||
int wich_mod(int mod);
|
||||
t_stacks *init_stacks(int argc, char **argv, int mod);
|
||||
int ft_strncmp(const char *s1, const char *s2, int n);
|
||||
size_t ft_strlen(const char *s);
|
||||
|
||||
@@ -79,7 +79,7 @@ int check_order(t_stack *stack);
|
||||
void insertion(t_stacks *stacks, int len);
|
||||
int test2(char **argv);
|
||||
/* TEST FILE */
|
||||
int test1(int argc, char **argv);
|
||||
int test1(char **tab, int len, int mod);
|
||||
|
||||
/* RADIX */
|
||||
void radix(t_stacks *stacks);
|
||||
|
||||
Reference in New Issue
Block a user