aboutsummaryrefslogtreecommitdiff
path: root/c10/ex02/helper.c
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-19 07:04:04 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-19 07:04:04 +0200
commit9eef9647b83f32f4bd8086de420cf1caeabf0206 (patch)
tree654ba9e8216c688bb3d6a2e5d67526ae8ec4b874 /c10/ex02/helper.c
parentcffe7f69cf28ab0889bee54a18c3f39101b33f16 (diff)
downloadpiscine-9eef9647b83f32f4bd8086de420cf1caeabf0206.tar.gz
piscine-9eef9647b83f32f4bd8086de420cf1caeabf0206.tar.bz2
piscine-9eef9647b83f32f4bd8086de420cf1caeabf0206.zip
c10 done?, c11 moulinetted (ex04, ex06 need correction)
Diffstat (limited to 'c10/ex02/helper.c')
-rw-r--r--c10/ex02/helper.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/c10/ex02/helper.c b/c10/ex02/helper.c
index e52a643..fe00813 100644
--- a/c10/ex02/helper.c
+++ b/c10/ex02/helper.c
@@ -6,13 +6,23 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/16 17:55:00 by cacharle #+# #+# */
-/* Updated: 2019/07/17 13:09:38 by cacharle ### ########.fr */
+/* Updated: 2019/07/18 07:57:54 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "include.h"
+int ft_putstr(char *str)
+{
+ int status;
+
+ status = 0;
+ while (*str)
+ status = write(STDOUT_FILENO, str++, 1);
+ return (status);
+}
+
int ft_strlen(char *str)
{
int counter;