From 358e300bc148d2a223e1cfa2a3c49da6c0ba968c Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 12 Apr 2024 16:55:57 +0200 Subject: Add get_next_line to libft --- get_next_line.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 get_next_line.h (limited to 'get_next_line.h') diff --git a/get_next_line.h b/get_next_line.h new file mode 100644 index 0000000..63c477b --- /dev/null +++ b/get_next_line.h @@ -0,0 +1,26 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* get_next_line.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser +# include + +# ifndef BUFFER_SIZE +# define BUFFER_SIZE 42 +# endif + +int ft_strlen(const char *str); +char *get_next_line(int fd); +void clear_buffer(char *buf, int start); +char *str_add_buffer(char *old_str, char *buf, int buf_len); +#endif // GET_NEXT_LINE_H -- cgit v1.2.3