/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* fillit.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: vmanzoni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/03/01 13:34:46 by vmanzoni #+# #+# */ /* Updated: 2019/04/22 15:57:43 by vmanzoni ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef FILLIT_H # define FILLIT_H #include #include // for system call write #include // for system call open #include // for memmove and strlen #include // for debug printf #include // to use bool type #include "libft/includes/libft.h" //# define BUFF_SIZE 1024 /* ** STRUCTURE */ typedef struct s_fillist { short tetribit; short tibirtet; int position; struct s_fillist *next; } t_fillist; /* ** FUNCTIONS */ char *read_file(char *file); void print_error(char *s); void parse_input(char *input); int check_file_errors(char *file); int check_tetri_errors(char *tetri); int check_tetri_errors2(char *tetri); int add_to_list(char *square, t_fillist **list); int fill_list(char *line, t_fillist *list); #endif