aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 19:41:24 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 19:41:24 +0100
commit12faf5456d0f2356b6406a0d74ed4559c4a85a41 (patch)
treec5e352d3471d68ea99a90b60e282f6af65518a19 /src/ft_parse_map.c
parentI got colors (diff)
download42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.gz
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.bz2
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.xz
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.zst
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.zip
ok but might redo ft_split
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index baf3b5f..d2fbe0d 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -1,8 +1,18 @@
#include <libft.h>
#include <cub3d.h>
#include <stdlib.h>
+#include <fcntl.h>
+
+/*
+** I can't close
+*/
void
-ft_parse_map(t_cub *clist)
+ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path)
{
+ int fd;
+
+ (void)clist;
+ fd = open(map_path, O_RDONLY);
+ ft_get_res(fd, wlist);
}