aboutsummaryrefslogtreecommitdiff
path: root/ft_putstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_putstr.c')
-rw-r--r--ft_putstr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ft_putstr.c b/ft_putstr.c
new file mode 100644
index 0000000..1bfe06c
--- /dev/null
+++ b/ft_putstr.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+
+void ft_putstr(char const *s)
+{
+ while (*s)
+ write(STDOUT_FILENO, s++, 1);
+}