aboutsummaryrefslogtreecommitdiff
path: root/c09/ex00/ft_putstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'c09/ex00/ft_putstr.c')
-rw-r--r--c09/ex00/ft_putstr.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/c09/ex00/ft_putstr.c b/c09/ex00/ft_putstr.c
new file mode 100644
index 0000000..c4f4564
--- /dev/null
+++ b/c09/ex00/ft_putstr.c
@@ -0,0 +1,19 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_putstr.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/07/11 16:17:16 by cacharle #+# #+# */
+/* Updated: 2019/07/11 16:18:11 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include <unistd.h>
+
+void ft_putstr(char *str)
+{
+ while (*str)
+ write(1, str++, 1);
+}