From a4b9cda7d6733f2b077f8586e3b3e69351e7dfba Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 11 May 2020 10:54:58 +0200 Subject: Added ft_getfile --- include/libft_io.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/libft_io.h b/include/libft_io.h index e59d70c..ce3c632 100644 --- a/include/libft_io.h +++ b/include/libft_io.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:35:43 by cacharle #+# #+# */ -/* Updated: 2020/05/09 11:16:36 by charles ### ########.fr */ +/* Updated: 2020/05/11 09:57:42 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,8 +29,14 @@ void ft_putnbr_fd(int n, int fd); char ft_getchar(void); +# ifndef FT_GETFILE_BUFFER_SIZE +# define FT_GETFILE_BUFFER_SIZE 64 +# endif + +char *ft_getfile(int fd); + # ifndef FT_GETLINE_BUFFER_SIZE -# define FT_GETLINE_BUFFER_SIZE 32 +# define FT_GETLINE_BUFFER_SIZE 64 # endif # define FT_LINE 1 -- cgit