text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_putstr_fd.c                                     :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: muhozkan <muhozkan@student.42.tr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2022/03/26 14:30:18 by muhozkan          #+#    #+#             */
  /*   Updated: 2022/03/26 14:30:18 by muhozkan         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "header.h"
  
  void	ft_putstr_fd(char *s, int fd)
  {
  	int	i;
  
  	i = 0;
  	if (s != 0)
  	{
  		while (s[i])
  			write(fd, &s[i++], 1);
  	}
  }
  