/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putendl_fd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/01 04:13:29 by tomoron #+# #+# */ /* Updated: 2023/11/01 14:25:27 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_putendl_fd(char *s, int fd) { if (s) { write(fd, s, ft_strlen(s)); write(fd, "\n", 1); } }