aboutsummaryrefslogtreecommitdiff
path: root/exam00/rendu/ft_putstr/ft_putstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'exam00/rendu/ft_putstr/ft_putstr.c')
-rwxr-xr-xexam00/rendu/ft_putstr/ft_putstr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/exam00/rendu/ft_putstr/ft_putstr.c b/exam00/rendu/ft_putstr/ft_putstr.c
new file mode 100755
index 0000000..aea8468
--- /dev/null
+++ b/exam00/rendu/ft_putstr/ft_putstr.c
@@ -0,0 +1,10 @@
+#include <unistd.h>
+
+void ft_putstr(char *str)
+{
+ while (*str)
+ {
+ write(1, str, 1);
+ str++;
+ }
+}