text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_putstr_fd.c                                     :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: pmitsuko <pmitsuko@student.42sp.org>       +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/02/14 22:58:39 by pmitsuko          #+#    #+#             */
  /*   Updated: 2021/02/14 23:00:33 by pmitsuko         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_putstr_fd(char *s, int fd)
  {
  	int i;
  
  	i = 0;
  	while (*(s + i))
  	{
  		write(fd, s + i, 1);
  		i++;
  	}
  }
  