aboutsummaryrefslogtreecommitdiff
path: root/ft_putchar_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_putchar_fd.c')
-rw-r--r--ft_putchar_fd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ft_putchar_fd.c b/ft_putchar_fd.c
new file mode 100644
index 0000000..405bbe4
--- /dev/null
+++ b/ft_putchar_fd.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+
+void ft_putchar_fd(char c, int fd)
+{
+ write(fd, &c, 1);
+}