Update ft_putstr_fd.c

This commit is contained in:
Raphaël 2023-12-02 07:11:19 +01:00 committed by GitHub
parent 5cedd8ac7f
commit 879848cde1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,12 +14,5 @@
void ft_putstr_fd(char *s, int fd)
{
size_t i;
i = 0;
while (s[i] != '\0')
{
ft_putchar_fd(s[i], fd);
i++;
}
write(fd, s, ft_strlen(s));
}