aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_res.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_get_res.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ft_get_res.c b/src/ft_get_res.c
new file mode 100644
index 0000000..c610fc1
--- /dev/null
+++ b/src/ft_get_res.c
@@ -0,0 +1,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);
+}