aboutsummaryrefslogtreecommitdiff
path: root/include/libft_io.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-30 18:36:30 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-30 18:36:30 +0100
commitaa244ec3fb071a7fd08494d04cc865b281502804 (patch)
tree4050030647cb9649b374b576c4dad7470840fc44 /include/libft_io.h
parentaa9613efb6fb39bd96fc4836b5d38c3746af1b15 (diff)
downloadlibft-aa244ec3fb071a7fd08494d04cc865b281502804.tar.gz
libft-aa244ec3fb071a7fd08494d04cc865b281502804.tar.bz2
libft-aa244ec3fb071a7fd08494d04cc865b281502804.zip
renaming header files, .libftignore file for simpler features selection
Diffstat (limited to 'include/libft_io.h')
-rw-r--r--include/libft_io.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/libft_io.h b/include/libft_io.h
new file mode 100644
index 0000000..f4c223b
--- /dev/null
+++ b/include/libft_io.h
@@ -0,0 +1,44 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_io.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/01/17 09:47:14 by cacharle #+# #+# */
+/* Updated: 2020/01/17 10:07:47 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef FT_IO_H
+# define FT_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);
+
+# 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