opti(putstr): use one write only
This commit is contained in:
parent
1cab237921
commit
4f4651eea9
|
@ -6,7 +6,7 @@
|
|||
/* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2015/11/27 18:23:12 by gbrochar #+# #+# */
|
||||
/* Updated: 2015/11/29 09:06:37 by gbrochar ### ########.fr */
|
||||
/* Updated: 2024/10/15 16:16:42 by gbrochar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -14,6 +14,5 @@
|
|||
|
||||
void ft_putstr(char const *s)
|
||||
{
|
||||
while (*s)
|
||||
write(1, s++, 1);
|
||||
write(1, s, ft_strlen(s));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue