opti(putstr): use one write only

This commit is contained in:
gbrochar 2024-10-15 16:17:25 +02:00
parent 1cab237921
commit 4f4651eea9
1 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */ /* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/27 18:23:12 by gbrochar #+# #+# */ /* 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) void ft_putstr(char const *s)
{ {
while (*s) write(1, s, ft_strlen(s));
write(1, s++, 1);
} }