aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_empty_line.c
blob: 7f58205f1ad8bbc0ebb86d18904e7c13856d78cf (plain)
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);
}