libft/ft_putstr_fd.c
Raphaël 7bd66aee5b
Push libft
125/100 corrected the 14/11/23
2023-11-14 13:31:56 +01:00

25 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/09 13:58:46 by rparodi #+# #+# */
/* Updated: 2023/11/10 15:57:46 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr_fd(char *s, int fd)
{
size_t i;
i = 0;
while (s[i] != '\0')
{
ft_putchar_fd(s[i], fd);
i++;
}
}