aboutsummaryrefslogtreecommitdiff
path: root/include/libft_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libft_io.h')
-rw-r--r--include/libft_io.h15
1 files changed, 14 insertions, 1 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 <unistd.h>
# include <stdlib.h>
+# include <fcntl.h>
# include <limits.h>
# 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