aboutsummaryrefslogtreecommitdiff
path: root/get_next_line.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-20 04:14:05 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-20 04:25:15 +0100
commit6a0f42bafdf8b17d24871a1da836dd12a107cf24 (patch)
treec61831c4a7d61a1a9ce468073015fc5b0f63e4ec /get_next_line.h
parentfbdb3cab8614d2c81622604eb1eeb9f42a56c14f (diff)
parentd0c146c2274198814e106b17ea1f9461a1b0b81a (diff)
downloadlibft-6a0f42bafdf8b17d24871a1da836dd12a107cf24.tar.gz
libft-6a0f42bafdf8b17d24871a1da836dd12a107cf24.tar.bz2
libft-6a0f42bafdf8b17d24871a1da836dd12a107cf24.zip
Merge branch 'rendu'
Diffstat (limited to 'get_next_line.h')
-rw-r--r--get_next_line.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/get_next_line.h b/get_next_line.h
new file mode 100644
index 0000000..c3962e3
--- /dev/null
+++ b/get_next_line.h
@@ -0,0 +1,38 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* get_next_line.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/10/09 13:52:59 by cacharle #+# #+# */
+/* Updated: 2019/11/03 22:43:18 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 STATUS_LINE 1
+# define STATUS_EOF 0
+# define STATUS_ERROR -1
+
+/*
+** get_next_line.c
+*/
+
+int get_next_line(int fd, char **line);
+int read_line(int fd, char **line, char *rest);
+int find_newline(char *str);
+int free_return(char **ptr, char **rest, int ret);
+
+#endif