push_swap/libft/ft_putendl_fd.c
Etienne Rey-bethbeder e35b9d3e9e Add libft
2022-12-08 18:06:06 +01:00

26 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/05 00:48:29 by erey-bet #+# #+# */
/* Updated: 2022/10/10 22:14:10 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl_fd(char *s, int fd)
{
if (s == NULL)
return ;
while (*s)
{
ft_putchar_fd(*s, fd);
s++;
}
ft_putchar_fd('\n', fd);
}