/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putendl.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/06/15 19:02:39 by bchanot #+# #+# */ /* Updated: 2018/10/29 12:14:10 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" #include void ft_putendl_fd(const char *const s, int fd) { if (s) write(fd, s, ft_strlen(s)); ft_putchar_fd('\n', fd); } void ft_putendl(const char *const s) { return (ft_putendl_fd(s, 1)); }