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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libft_io.h b/include/libft_io.h
index ab40875..f0d6f49 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/12 20:36:36 by charles ### ########.fr */
+/* Updated: 2020/08/02 11:03:44 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,6 +15,7 @@
# include <unistd.h>
# include <stdlib.h>
+# include <fcntl.h>
# include <limits.h>
# include "libft.h"
# include "libft_def.h"
@@ -23,10 +24,12 @@ void ft_putendl(char *s);
void ft_putchar(char c);
void ft_putstr(char const *s);
void ft_putnbr(int n);
+void ft_putnbr_base(int n, char *base);
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_fd(int n, char *base, int fd);
char ft_getchar(void);
@@ -43,7 +46,8 @@ typedef struct s_ftmem
size_t size;
} t_ftmem;
-int ft_getfile(int fd, t_ftmem *mem);
+int ft_getfile_fd(int fd, t_ftmem *mem);
+int ft_getfile(char *filename, t_ftmem *mem);
# ifndef FT_GETLINE_BUFFER_SIZE
# define FT_GETLINE_BUFFER_SIZE 64