From 879848cde17dbd02a750f5cb44ba3a9f4de1f7e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= <35407363+EniumRaphael@users.noreply.github.com> Date: Sat, 2 Dec 2023 07:11:19 +0100 Subject: [PATCH] Update ft_putstr_fd.c --- ft_putstr_fd.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ft_putstr_fd.c b/ft_putstr_fd.c index 0c8cd8f..3f5f4e0 100644 --- a/ft_putstr_fd.c +++ b/ft_putstr_fd.c @@ -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)); }