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.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/get_next_line.h b/get_next_line.h
index 7aa51e9..6d55f61 100644
--- a/get_next_line.h
+++ b/get_next_line.h
@@ -5,20 +5,8 @@
/* +:+ +:+ +:+ */
/* 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 */
+/* Updated: 2019/10/10 10:19:54 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -27,7 +15,6 @@
# ifndef BUFFER_SIZE
# define BUFFER_SIZE (15)
-
# endif
# define LINE_READ 1
@@ -39,14 +26,14 @@
*/
int get_next_line(int fd, char **line);
+int read_after(int fd, char *buf, char *rest_buf);
/*
** get_next_line_utils.c - helper functions
*/
int find_newline(char *str);
-char *ft_strncpy(char *dest, const char *src, size_t n);
-char *ft_strcat(char *dest, const char *src);
+char *ft_strncpy(char *dest, const char *src, int n);
int ft_strlen(char *str);
#endif