aboutsummaryrefslogtreecommitdiff
path: root/ft_putchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_putchar.c')
-rw-r--r--ft_putchar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ft_putchar.c b/ft_putchar.c
new file mode 100644
index 0000000..5718181
--- /dev/null
+++ b/ft_putchar.c
@@ -0,0 +1,8 @@
+#include <unistd.h>
+
+void ft_putchar(char c)
+{
+ /* if (c < 0) */
+ /* write(1, "", 1); */
+ write(STDOUT_FILENO, &c, 1);
+}