1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <libft.h> #include <cub3d.h> void ft_check_empty_line(int fd, unsigned int linum, t_win *wlist) { char *line; get_next_line(fd, &line); if (*line) { ft_memdel(line); ft_map_error(linum, wlist); } ft_memdel(line); }