More readable ft_putstr function
This commit is contained in:
parent
7da10506bb
commit
29151da810
|
@ -6,7 +6,7 @@
|
|||
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/18 20:15:26 by jtorrez- #+# #+# */
|
||||
/* Updated: 2023/03/19 19:07:32 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/19 19:25:29 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -76,5 +76,8 @@ void ft_putstr(char *str)
|
|||
|
||||
i = 0;
|
||||
while (str[i] != '\0')
|
||||
ft_putchar(str[i++]);
|
||||
{
|
||||
ft_putchar(str[i]);
|
||||
i = i + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue