aboutsummaryrefslogtreecommitdiff
path: root/c10/ex02/helper.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-19 07:04:04 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-19 07:04:04 +0200
commit8b6e91bdb56bc01a588718472546f2a88e750b48 (patch)
tree654ba9e8216c688bb3d6a2e5d67526ae8ec4b874 /c10/ex02/helper.c
parent880102ae9358db130ef67cc9a7177a1e1de76875 (diff)
downloadpiscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.gz
piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.bz2
piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.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;