aboutsummaryrefslogtreecommitdiff
path: root/libft/include/libft_io.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-11 15:52:52 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-11 15:52:52 +0200
commitc98de126d2252fe47dc2a9094a5f9a8fa6b4b60a (patch)
tree12f1c827ee063ed3e7038f6a704014e611e4f388 /libft/include/libft_io.h
parenta4ceb5974d1b7dcdd12cc81b7eb07893ea16c8ad (diff)
downloadminishell-c98de126d2252fe47dc2a9094a5f9a8fa6b4b60a.tar.gz
minishell-c98de126d2252fe47dc2a9094a5f9a8fa6b4b60a.tar.bz2
minishell-c98de126d2252fe47dc2a9094a5f9a8fa6b4b60a.zip
Removing libft/minishell_test submodules, Removing subject/README/etc
Diffstat (limited to 'libft/include/libft_io.h')
-rw-r--r--libft/include/libft_io.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/libft/include/libft_io.h b/libft/include/libft_io.h
new file mode 100644
index 0000000..1294abc
--- /dev/null
+++ b/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/06/19 17:45:34 by charles ### ########.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 FTGL_BUFFER_SIZE
+# define FTGL_BUFFER_SIZE 32
+# endif
+
+# define FTGL_OK 1
+# define FTGL_EOF 0
+# define FTGL_ERROR -1
+
+/*
+** ft_getline.c (get_next_line)
+*/
+
+int ft_getline(int fd, char **line);
+
+#endif