diff --git a/builds/draw.o b/builds/draw.o new file mode 100644 index 0000000..bd215e4 Binary files /dev/null and b/builds/draw.o differ diff --git a/builds/fdf.o b/builds/fdf.o new file mode 100644 index 0000000..76d79d6 Binary files /dev/null and b/builds/fdf.o differ diff --git a/builds/keypress.o b/builds/keypress.o new file mode 100644 index 0000000..872fdff Binary files /dev/null and b/builds/keypress.o differ diff --git a/builds/modifs.o b/builds/modifs.o new file mode 100644 index 0000000..46ab7d3 Binary files /dev/null and b/builds/modifs.o differ diff --git a/builds/parse.o b/builds/parse.o new file mode 100644 index 0000000..f6e44bc Binary files /dev/null and b/builds/parse.o differ diff --git a/fdf b/fdf new file mode 100755 index 0000000..7b165f6 Binary files /dev/null and b/fdf differ diff --git a/libft b/libft index d622367..f32d4bb 160000 --- a/libft +++ b/libft @@ -1 +1 @@ -Subproject commit d622367cfdc547b2d6cc3a7bfaaa7ed7a1301648 +Subproject commit f32d4bbc96af281afdb5c1443a54d185bd2f16e7 diff --git a/srcs/fdf.c b/srcs/fdf.c index 311561d..8f3b760 100644 --- a/srcs/fdf.c +++ b/srcs/fdf.c @@ -75,13 +75,18 @@ void init_fdf(t_fdf *fdf) draw_image(fdf); } +int usage() { + write(2, "usage:\nneed one argument : ./fdf maps/.fdf\n", 48); + return (0); +} + int main(int ac, char **av) { t_fdf *fdf; int fd; if (ac != 2) - return (0); + return usage(); fdf = malloc(sizeof(t_fdf)); fd = open(av[1], O_RDONLY); if (!fd || !fdf)