-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.c
27 lines (24 loc) · 1.09 KB
/
parser.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parser.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hgrissen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/04 18:22:25 by hgrissen #+# #+# */
/* Updated: 2021/11/05 15:46:53 by hgrissen ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
char **get_map(char **av)
{
char *str;
char **map;
str = get_file(av);
check_map_chars(str);
check_elements_count(str);
map = ft_split(str, '\n');
free(str);
check_map_closed(map);
return (map);
}