diff options
| author | Dominik Kaiser | 2024-04-12 16:55:57 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-04-12 16:55:57 +0200 |
| commit | 358e300bc148d2a223e1cfa2a3c49da6c0ba968c (patch) | |
| tree | f79772df1f0d5590b71c3ca1e70370ec86540aab /get_next_line.h | |
| parent | 0560de9d3932735737ac9118c626a7ced0eedfd2 (diff) | |
| download | libft-358e300bc148d2a223e1cfa2a3c49da6c0ba968c.tar.gz libft-358e300bc148d2a223e1cfa2a3c49da6c0ba968c.zip | |
Add get_next_line to libft
Diffstat (limited to 'get_next_line.h')
| -rw-r--r-- | get_next_line.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/03/15 14:14:07 by dkaiser #+# #+# */ +/* Updated: 2024/03/25 14:19:27 by dkaiser ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef GET_NEXT_LINE_H +# define GET_NEXT_LINE_H +# include <stdlib.h> +# include <unistd.h> + +# 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 |
