diff options
Diffstat (limited to 'c10/ex02/helper.c')
| -rw-r--r-- | c10/ex02/helper.c | 12 |
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; |
