From 9c64c9d253fa22b29005ec53dca6fedcead2ae6c Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 12 Apr 2024 18:51:50 +0200 Subject: Add libft and input handling --- libft/get_next_line.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libft/get_next_line.h (limited to 'libft/get_next_line.h') diff --git a/libft/get_next_line.h b/libft/get_next_line.h new file mode 100644 index 0000000..63c477b --- /dev/null +++ b/libft/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