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