philosopher/philo/utils/ft_putstr_fd.c
Etienne Rey-bethbeder 3f0ec62059 corrigé mixed up
2023-04-06 14:02:19 +02:00

25 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/05 00:32:38 by erey-bet #+# #+# */
/* Updated: 2023/03/08 21:10:18 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
#include "utils.h"
void ft_putstr_fd(char *s, int fd)
{
if (s == NULL)
return ;
while (*s)
{
ft_putchar_fd(*s, fd);
s++;
}
}