summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_putstr_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_putstr_fd.c')
-rw-r--r--libft/src/ft_putstr_fd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libft/src/ft_putstr_fd.c b/libft/src/ft_putstr_fd.c
index b90c078..068d959 100644
--- a/libft/src/ft_putstr_fd.c
+++ b/libft/src/ft_putstr_fd.c
@@ -11,11 +11,11 @@
/* / */
/* ************************************************************************** */
-#include "libft.h"
+#include <libft.h>
#include <unistd.h>
-void
+int
ft_putstr_fd(char *s, int fd)
{
- write(fd, s, ft_strlen(s));
+ return (write(fd, s, ft_strlen(s)));
}