diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-17 10:56:16 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-17 10:56:16 +0100 |
| commit | fe37597119353ce183fc404417b81bd4702f64b7 (patch) | |
| tree | faa20a8352092c062e2fd272fff2104d9f2ddb3f /include/ft_get_next_line.h | |
| parent | 2e5ca2ab6276b7b24895ade28e1533356ef523dc (diff) | |
| download | libft-fe37597119353ce183fc404417b81bd4702f64b7.tar.gz libft-fe37597119353ce183fc404417b81bd4702f64b7.tar.bz2 libft-fe37597119353ce183fc404417b81bd4702f64b7.zip | |
Splited include like src/, Adding feature toggle protection in header
Diffstat (limited to 'include/ft_get_next_line.h')
| -rw-r--r-- | include/ft_get_next_line.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/ft_get_next_line.h b/include/ft_get_next_line.h new file mode 100644 index 0000000..03bf344 --- /dev/null +++ b/include/ft_get_next_line.h @@ -0,0 +1,35 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* get_next_line.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/09 13:52:59 by cacharle #+# #+# */ +/* Updated: 2020/01/17 10:53:43 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FT_GET_NEXT_LINE_H +# define FT_GET_NEXT_LINE_H + +# include <unistd.h> +# include <stdlib.h> +# include <limits.h> +# include "libft.h" + +# ifndef GNL_BUFFER_SIZE +# define GNL_BUFFER_SIZE 32 +# endif + +# define GNL_STATUS_LINE 1 +# define GNL_STATUS_EOF 0 +# define GNL_STATUS_ERROR -1 + +/* +** get_next_line.c +*/ + +int get_next_line(int fd, char **line); + +#endif |
