1 2 3 4 5 6 7 8 9
#include "libft.h" #include <unistd.h> void ft_putendl_fd (char *s, int fd) { write (fd, s, ft_strlen (s)); write (fd, "\n", 1); }