aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_res.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 20:20:38 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 20:20:38 +0100
commitd696def5f207309362efdb0c091d73019f1806ba (patch)
treef95f585571d9933fd058eb50326f6901177ef61f /src/ft_get_res.c
parentWork in progress, split redone (diff)
download42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.gz
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.bz2
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.xz
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.zst
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.zip
Nice and working
Diffstat (limited to 'src/ft_get_res.c')
-rw-r--r--src/ft_get_res.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ft_get_res.c b/src/ft_get_res.c
index ff39280..c610fc1 100644
--- a/src/ft_get_res.c
+++ b/src/ft_get_res.c
@@ -12,12 +12,11 @@ ft_get_res(int fd, t_win *wlist)
get_next_line(fd, &line);
words = ft_split(line, ' ');
i = 0;
- ft_printf("%s\n", line);
- /* while (words) */
- /* { */
- /* ft_printf("[%s] ", words[i]); */
- /* i++; */
- /* } */
- /* ft_printf("\n"); */
+ while (words)
+ {
+ ft_printf("[%s] ", words[i]);
+ i++;
+ }
+ ft_printf("\n");
return (0);
}