#include #include void ft_check_empty_line(int fd, unsigned int linum, t_win *wlist) { char *line; if (get_next_line(fd, &line) <= 0) { ft_memdel(line); ft_map_error(linum, wlist); } if (*line) { ft_memdel(line); ft_map_error(linum, wlist); } ft_memdel(line); }