libft/ft_putendl_fd.c
2024-10-18 15:25:40 +02:00

35 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/18 15:21:25 by kcolin #+# #+# */
/* Updated: 2024/10/18 15:23:07 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl_fd(char *s, int fd)
{
ft_putstr_fd(s, fd);
ft_putchar_fd('\n', fd);
}
/*
int main(int argc, char **argv)
{
if (argc > 1)
{
int i = 1;
while (i < argc)
{
ft_putendl_fd(argv[i], 1);
i++;
}
}
return (0);
}
*/