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.h33
1 files changed, 28 insertions, 5 deletions
diff --git a/get_next_line.h b/get_next_line.h
index d4c866a..7aa51e9 100644
--- a/get_next_line.h
+++ b/get_next_line.h
@@ -1,15 +1,39 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* get_next_line.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/10/09 16:24:58 by cacharle #+# #+# */
+/* Updated: 2019/10/09 16:42:51 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* get_next_line.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/10/09 13:52:59 by cacharle #+# #+# */
+/* Updated: 2019/10/09 16:24:26 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
-# define BUFFER_SIZE (1 << 8)
+# define BUFFER_SIZE (15)
+
# endif
# define LINE_READ 1
-# define NO_LINE_READ 0
+# define END_OF_FILE 0
# define ERROR -1
-
/*
** get_next_line.c
*/
@@ -21,8 +45,7 @@ int get_next_line(int fd, char **line);
*/
int find_newline(char *str);
-char *strappend(char *dest, char *src);
-char *ft_strcpy(char *dest, const char *src);
+char *ft_strncpy(char *dest, const char *src, size_t n);
char *ft_strcat(char *dest, const char *src);
int ft_strlen(char *str);