#include #include #include #include #include /* ** I can't close fd */ void ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path) { int fd; (void)clist; fd = open(map_path, O_RDONLY); if (fd < 0) { ft_dprintf(STDERR_FILENO, "Error\n"); ft_dprintf(STDERR_FILENO, "\033[31;1mNo map\033[0m\n"); ft_exit(2); } ft_get_res(fd, wlist); }