#include "libft.h" void ft_putendl_fd(char const *s, int fd) { char nl; nl = '\n'; write(fd, s, ft_strlen(s)); write(fd, &nl, 1); }