/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putendl_fd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/04 15:17:18 by gtertysh #+# #+# */ /* Updated: 2016/12/04 15:24:55 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_putendl_fd(char const *s, int fd) { if (s) while (*s) write(fd, s++, 1); write(fd, "\n", 1); }