diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-11 10:54:58 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-11 10:54:58 +0200 |
| commit | a4b9cda7d6733f2b077f8586e3b3e69351e7dfba (patch) | |
| tree | 74273a479519e22adb1c7afbee028c4341099369 /include | |
| parent | d3fb362c2e0b83cc9754a05ae5bc4a68a5f9269d (diff) | |
| download | libft-a4b9cda7d6733f2b077f8586e3b3e69351e7dfba.tar.gz libft-a4b9cda7d6733f2b077f8586e3b3e69351e7dfba.tar.bz2 libft-a4b9cda7d6733f2b077f8586e3b3e69351e7dfba.zip | |
Added ft_getfile
Diffstat (limited to 'include')
| -rw-r--r-- | include/libft_io.h | 10 |
1 files changed, 8 insertions, 2 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 |
