From ca68aa1e6fca81213d19431439ad0b31863fe10c Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 22 Feb 2020 10:37:27 +0100 Subject: Added ft_putnbr_base{_fd}, ft_read_fd, ft_read_file --- include/libft_io.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libft_io.h b/include/libft_io.h index 76bce17..869bb86 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/02/14 02:23:43 by cacharle ### ########.fr */ +/* Updated: 2020/02/22 10:36:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,9 +15,14 @@ # include # include +# include # include # include "libft.h" +/* +** output +*/ + void ft_putendl(char *s); void ft_putchar(char c); void ft_putstr(char const *s); @@ -26,8 +31,16 @@ 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); +void ft_putnbr_base(int n, char *base); +void ft_putnbr_base_fd(int n, char *base, int fd); + +/* +** input +*/ char ft_getchar(void); +char *ft_read_fd(int fd); +char *ft_read_file(char *filename); # ifndef FTNL_BUFFER_SIZE # define FTNL_BUFFER_SIZE 32 -- cgit