text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_putendl_fd.c                                    :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: slaanani <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/05/26 04:39:59 by slaanani          #+#    #+#             */
  /*   Updated: 2019/05/26 04:40:01 by slaanani         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_putendl_fd(char const *s, int fd)
  {
  	int	i;
  
  	if (!s)
  		return ;
  	i = 0;
  	while (s[i] != '\0')
  	{
  		ft_putchar_fd(s[i], fd);
  		i++;
  	}
  	ft_putchar_fd('\n', fd);
  }
  