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