1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <libft.h> #include <cub3d.h> int ft_get_res(int fd, t_win *wlist) { char *line; char **words; int i; (void)wlist; get_next_line(fd, &line); words = ft_split(line, ' '); i = 0; while (words) { ft_printf("[%s] ", words[i]); i++; } ft_printf("\n"); return (0); }