aboutsummaryrefslogtreecommitdiff
path: root/c09/ex00/ft_putstr.c
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-15 08:15:37 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-15 08:15:37 +0200
commit6bf5dd01493dd6bf644a4896c666535e5eaa8d67 (patch)
tree25b02c02f5140dbefbabd7720f292d8be3d5cc51 /c09/ex00/ft_putstr.c
parente8ab18a2c724c0acfa1688a62bc2042471d68e39 (diff)
downloadpiscine-6bf5dd01493dd6bf644a4896c666535e5eaa8d67.tar.gz
piscine-6bf5dd01493dd6bf644a4896c666535e5eaa8d67.tar.bz2
piscine-6bf5dd01493dd6bf644a4896c666535e5eaa8d67.zip
c07 passed, c08 in progress, rush01(+ 6x6 try)
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);
+}