From acb835621713942c075a42c8b8040702b27031cc Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 25 Aug 2019 19:33:44 +0200 Subject: Initial commit with boilerplate stuff --- .gitmodules | 3 +++ author | 1 + get_next_line.c | 14 ++++++++++++++ get_next_line.h | 9 +++++++++ libft | 1 + 5 files changed, 28 insertions(+) create mode 100644 .gitmodules create mode 100644 author create mode 100644 get_next_line.c create mode 100644 get_next_line.h create mode 160000 libft diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c3c466b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libft"] + path = libft + url = ./libft diff --git a/author b/author new file mode 100644 index 0000000..718becd --- /dev/null +++ b/author @@ -0,0 +1 @@ +cacharle diff --git a/get_next_line.c b/get_next_line.c new file mode 100644 index 0000000..0beef4d --- /dev/null +++ b/get_next_line.c @@ -0,0 +1,14 @@ +#include +#include +#include "get_next_line.h" + +int get_next_line(const int fd, char **line) +{ + char buf[BUFF_SIZE]; + + while ((read(fd, buf, BUFF_SIZE)) > 0) + { + + } + return 0; +} diff --git a/get_next_line.h b/get_next_line.h new file mode 100644 index 0000000..efe927b --- /dev/null +++ b/get_next_line.h @@ -0,0 +1,9 @@ +#ifndef GET_NEXT_LINE_H +# define GET_NEXT_LINE_H + +# define NEWLINE 0x0A +# define BUFF_SIZE (1 << 8) + +int get_next_line(const int fd, char **line); + +#endif diff --git a/libft b/libft new file mode 160000 index 0000000..9a2b208 --- /dev/null +++ b/libft @@ -0,0 +1 @@ +Subproject commit 9a2b208985ac7d4644c718ada74770b98eeb4598 -- cgit