diff options
| author | Dominik Kaiser | 2024-06-24 16:58:46 +0200 |
|---|---|---|
| committer | GitHub | 2024-06-24 16:58:46 +0200 |
| commit | a28e57c6e0277a1d7346bec58cf557c52e337501 (patch) | |
| tree | 8710c1c12dfd9e6c52821944b0676ec15e5e20ae /lib/libft/get_next_line.h | |
| parent | f1349566aef0cb80ef8f4cdcf2795e38631ed820 (diff) | |
| download | minishell-a28e57c6e0277a1d7346bec58cf557c52e337501.tar.gz minishell-a28e57c6e0277a1d7346bec58cf557c52e337501.zip | |
Add libft
Diffstat (limited to 'lib/libft/get_next_line.h')
| -rw-r--r-- | lib/libft/get_next_line.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/libft/get_next_line.h b/lib/libft/get_next_line.h new file mode 100644 index 0000000..5d3c6ee --- /dev/null +++ b/lib/libft/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/06/24 16:44:01 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 |
