blob: a45052c9ff7c29f35d5cd6c1106db8fdef11dd6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <libft.h>
#include <cub3d.h>
#include <stddef.h>
#include <stdlib.h>
int
ft_get_map(int fd, t_win *wlist)
{
size_t i;
char *line;
ft_free_words(wlist->clist->map, NULL);
i = 0;
if (!(wlist->clist->map = (char**)malloc(40 * sizeof(char*))))
return (-1);
while (get_next_line(fd, &line) > 0)
{
}
return (0);
}
|