aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_putstr_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_putstr_fd.c')
-rw-r--r--src/ft_putstr_fd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ft_putstr_fd.c b/src/ft_putstr_fd.c
new file mode 100644
index 0000000..663af0d
--- /dev/null
+++ b/src/ft_putstr_fd.c
@@ -0,0 +1,8 @@
+#include "libft.h"
+#include <unistd.h>
+
+void
+ft_putstr_fd (char *s, int fd)
+{
+ write (fd, s, ft_strlen (s));
+}