diff options
| -rw-r--r-- | ft_putchar_fd.c | 3 | ||||
| -rw-r--r-- | ft_putstr_fd.c | 3 | ||||
| -rw-r--r-- | libft.h | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/ft_putchar_fd.c b/ft_putchar_fd.c index a06b8b1..78d94a8 100644 --- a/ft_putchar_fd.c +++ b/ft_putchar_fd.c @@ -10,8 +10,7 @@ /* */ /* ************************************************************************** */ -#include <unistd.h> -#include <limits.h> +#include "libft.h" void ft_putchar_fd(char c, int fd) { diff --git a/ft_putstr_fd.c b/ft_putstr_fd.c index 1f2bbda..645c133 100644 --- a/ft_putstr_fd.c +++ b/ft_putstr_fd.c @@ -10,8 +10,7 @@ /* */ /* ************************************************************************** */ -#include <unistd.h> -#include <limits.h> +#include "libft.h" void ft_putstr_fd(char *s, int fd) { @@ -14,12 +14,17 @@ # define LIBFT_H # include <errno.h> +# include <unistd.h> # include <string.h> # include <stdlib.h> # define TRUE 1 # define FALSE 0 +# ifndef OPEN_MAX +# define OPEN_MAX 1024 +# endif + typedef unsigned char t_byte; typedef int t_bool; |
