diff options
Diffstat (limited to 'c01')
| -rw-r--r-- | c01/ex05/ft_putstr.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/c01/ex05/ft_putstr.c b/c01/ex05/ft_putstr.c index 55d0d43..f0b5578 100644 --- a/c01/ex05/ft_putstr.c +++ b/c01/ex05/ft_putstr.c @@ -6,7 +6,7 @@ /* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/03 17:57:28 by cacharle #+# #+# */ -/* Updated: 2019/07/04 06:29:50 by cacharle ### ########.fr */ +/* Updated: 2019/07/07 16:59:04 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,9 +14,6 @@ void ft_putstr(char *str) { - while (*str != '\0') - { - write(1, str, 1); - str++; - } + while (*str) + write(1, str++, 1); } |
