From aa244ec3fb071a7fd08494d04cc865b281502804 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 30 Jan 2020 18:36:30 +0100 Subject: renaming header files, .libftignore file for simpler features selection --- include/libft_io.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/libft_io.h (limited to 'include/libft_io.h') diff --git a/include/libft_io.h b/include/libft_io.h new file mode 100644 index 0000000..f4c223b --- /dev/null +++ b/include/libft_io.h @@ -0,0 +1,44 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_io.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/01/17 09:47:14 by cacharle #+# #+# */ +/* Updated: 2020/01/17 10:07:47 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FT_IO_H +# define FT_IO_H + +# include +# include +# include +# include "libft.h" + +void ft_putendl(char *s); +void ft_putchar(char c); +void ft_putstr(char const *s); +void ft_putnbr(int n); +void ft_putchar_fd(char c, int fd); +void ft_putstr_fd(char *s, int fd); +void ft_putendl_fd(char *s, int fd); +void ft_putnbr_fd(int n, int fd); + +# ifndef FTNL_BUFFER_SIZE +# define FTNL_BUFFER_SIZE 32 +# endif + +# define FTNL_STATUS_LINE 1 +# define FTNL_STATUS_EOF 0 +# define FTNL_STATUS_ERROR -1 + +/* +** get_next_line.c +*/ + +int ft_next_line(int fd, char **line); + +#endif -- cgit