aboutsummaryrefslogtreecommitdiff
path: root/get_next_line.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-10 10:20:32 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-10 10:20:32 +0200
commit2df0d3e47a9deb4676b4fd82a1924da4181ef9d9 (patch)
tree3b8e8800557754983b5da44757424b43670232bc /get_next_line.h
parente1e832e8f63046bdea329a8f82b6d88131c1d09e (diff)
downloadget_next_line-2df0d3e47a9deb4676b4fd82a1924da4181ef9d9.tar.gz
get_next_line-2df0d3e47a9deb4676b4fd82a1924da4181ef9d9.tar.bz2
get_next_line-2df0d3e47a9deb4676b4fd82a1924da4181ef9d9.zip
WIP: not getting last part if buff size too high
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