This commit is contained in:
Camille Chauvet 2022-12-11 19:27:25 +01:00
parent 8dc79894f8
commit 898be1619f

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */ /* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/12 14:34:28 by cchauvet #+# #+# */ /* Created: 2022/10/12 14:34:28 by cchauvet #+# #+# */
/* Updated: 2022/11/23 16:09:56 by cchauvet ### ########.fr */ /* Updated: 2022/12/11 19:23:34 by cchauvet ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -18,7 +18,10 @@ static int ft_dprintseg(int fd, const char *str)
i = 0; i = 0;
while (str[i] != '\0' && ft_skipflag(str + i) == 0) while (str[i] != '\0' && ft_skipflag(str + i) == 0)
ft_putchar_fd(fd, str[i++]); {
ft_putchar_fd(fd, str[i]);
i++;
}
return (i); return (i);
} }