「🏗️」 wip: parsing map
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/04 17:01:05 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/11 14:54:17 by madumerg ### ########.fr */
|
||||
/* Updated: 2024/09/12 12:54:48 by madumerg ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -20,15 +20,7 @@
|
||||
# include <unistd.h>
|
||||
# include <fcntl.h>
|
||||
# include <stdio.h>
|
||||
# include "parsing.h"
|
||||
|
||||
int check_format_file(char *file);
|
||||
int check_err_arg(int argc, char **argv);
|
||||
|
||||
char **parse_map(char *map);
|
||||
int err_mess(char *str);
|
||||
|
||||
int verif_all_map(char **map);
|
||||
int verif_char(char c);
|
||||
int check_char_map(char **map);
|
||||
void convert_white_s(char *str);
|
||||
#endif
|
||||
|
37
includes/parsing.h
Normal file
37
includes/parsing.h
Normal file
@ -0,0 +1,37 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* parsing.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/12 12:49:16 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/12 12:57:11 by madumerg ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PARSING_H
|
||||
# define PARSING_H
|
||||
|
||||
//check_arg.c
|
||||
int check_err_arg(int ac, char **av);
|
||||
int check_format_file(char *file);
|
||||
|
||||
//check_map.c
|
||||
int err_not_close(char after, char before, char down, char up);
|
||||
int actual_char(char actual);
|
||||
int check_map_close(char **map);
|
||||
int count_player(char **map);
|
||||
int check_char_map(char **map);
|
||||
|
||||
//principal_pars.c
|
||||
int verif_all_map(char **map);
|
||||
char **parse_map(char *map);
|
||||
|
||||
//mess_error.c in utils
|
||||
int err_mess(char *str);
|
||||
|
||||
//parse_utils.c
|
||||
void convert_white_s(char *str);
|
||||
int verif_char(char c);
|
||||
#endif
|
Reference in New Issue
Block a user