aboutsummaryrefslogtreecommitdiff
path: root/test_mini/libft/include/libft_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'test_mini/libft/include/libft_io.h')
-rw-r--r--test_mini/libft/include/libft_io.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/test_mini/libft/include/libft_io.h b/test_mini/libft/include/libft_io.h
new file mode 100644
index 0000000..418b230
--- /dev/null
+++ b/test_mini/libft/include/libft_io.h
@@ -0,0 +1,46 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* libft_io.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/01/31 10:35:43 by cacharle #+# #+# */
+/* Updated: 2020/02/28 12:09:11 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef LIBFT_IO_H
+# define LIBFT_IO_H
+
+# include <unistd.h>
+# include <stdlib.h>
+# include <limits.h>
+# 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 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