From c98de126d2252fe47dc2a9094a5f9a8fa6b4b60a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 11 Oct 2020 15:52:52 +0200 Subject: Removing libft/minishell_test submodules, Removing subject/README/etc --- libft/include/libft_io.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 libft/include/libft_io.h (limited to 'libft/include/libft_io.h') diff --git a/libft/include/libft_io.h b/libft/include/libft_io.h new file mode 100644 index 0000000..1294abc --- /dev/null +++ b/libft/include/libft_io.h @@ -0,0 +1,46 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* libft_io.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/01/31 10:35:43 by cacharle #+# #+# */ +/* Updated: 2020/06/19 17:45:34 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef LIBFT_IO_H +# define LIBFT_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); + +char ft_getchar(void); + +# ifndef FTGL_BUFFER_SIZE +# define FTGL_BUFFER_SIZE 32 +# endif + +# define FTGL_OK 1 +# define FTGL_EOF 0 +# define FTGL_ERROR -1 + +/* +** ft_getline.c (get_next_line) +*/ + +int ft_getline(int fd, char **line); + +#endif -- cgit