aboutsummaryrefslogtreecommitdiff
path: root/include/get_next_line.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-15 07:56:02 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-15 08:49:32 +0100
commit49ad59b0e773e92e93fb69ede889c781ca53e680 (patch)
tree5ad230ddcc2198555e2b56ca84945809c137285d /include/get_next_line.h
parent5c6d9b3ba3e4946b2a527d10109f0e82284e64c5 (diff)
downloadlibft-49ad59b0e773e92e93fb69ede889c781ca53e680.tar.gz
libft-49ad59b0e773e92e93fb69ede889c781ca53e680.tar.bz2
libft-49ad59b0e773e92e93fb69ede889c781ca53e680.zip
Move *.o -> src/, *.h -> include/ and *.o -> build
Diffstat (limited to 'include/get_next_line.h')
-rw-r--r--include/get_next_line.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/get_next_line.h b/include/get_next_line.h
new file mode 100644
index 0000000..9d15202
--- /dev/null
+++ b/include/get_next_line.h
@@ -0,0 +1,35 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* get_next_line.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/10/09 13:52:59 by cacharle #+# #+# */
+/* Updated: 2020/01/15 07:22:07 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef GET_NEXT_LINE_H
+# define GET_NEXT_LINE_H
+
+# include <unistd.h>
+# include <stdlib.h>
+# include <limits.h>
+# include "libft.h"
+
+# ifndef BUFFER_SIZE
+# define BUFFER_SIZE 32
+# endif
+
+# define GNL_STATUS_LINE 1
+# define GNL_STATUS_EOF 0
+# define GNL_STATUS_ERROR -1
+
+/*
+** get_next_line.c
+*/
+
+int get_next_line(int fd, char **line);
+
+#endif