aboutsummaryrefslogtreecommitdiff
path: root/get_next_line.h
diff options
context:
space:
mode:
Diffstat (limited to 'get_next_line.h')
-rw-r--r--get_next_line.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/get_next_line.h b/get_next_line.h
index a70ea24..d4c866a 100644
--- a/get_next_line.h
+++ b/get_next_line.h
@@ -1,8 +1,29 @@
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
-# define BUFF_SIZE (1 << 8)
+# ifndef BUFFER_SIZE
+# define BUFFER_SIZE (1 << 8)
+# endif
-int get_next_line(const int fd, char **line);
+# define LINE_READ 1
+# define NO_LINE_READ 0
+# define ERROR -1
+
+
+/*
+** get_next_line.c
+*/
+
+int get_next_line(int fd, char **line);
+
+/*
+** get_next_line_utils.c - helper functions
+*/
+
+int find_newline(char *str);
+char *strappend(char *dest, char *src);
+char *ft_strcpy(char *dest, const char *src);
+char *ft_strcat(char *dest, const char *src);
+int ft_strlen(char *str);
#endif