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