/* ************************************************************************** */ /* */ /* :::::::: */ /* parse.c :+: :+: */ /* +:+ */ /* By: houtworm +#+ */ /* +#+ */ /* Created: 2023/10/26 16:48:55 by houtworm #+# #+# */ /* Updated: 2023/10/27 13:49:00 by djonker ######## odam.nl */ /* */ /* ************************************************************************** */ #include "../cub3d.h" t_varlist ft_parseconfigfile(t_varlist vl, char *filename) { int fd; char *line; fd = open(filename, O_RDONLY); if (fd == -1) ft_errorexit("file does not exist", "parseconfigfile", 1); while (get_next_line(fd, &line)) { free(line); } vl.map = ft_getmap(); return (vl); }