text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_putnbr_fd.c                                     :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: roaraujo <roaraujo@student.42sp.org.br>    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/10/06 10:55:15 by roaraujo          #+#    #+#             */
  /*   Updated: 2021/10/06 10:55:16 by roaraujo         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_putnbr_fd(int n, int fd)
  {
  	unsigned int	number;
  
  	number = n;
  	if (n < 0)
  	{
  		ft_putchar_fd('-', fd);
  		number = n * -1;
  	}
  	if (number > 9)
  	{
  		ft_putnbr_fd(number / 10, fd);
  	}
  	ft_putchar_fd(number % 10 + '0', fd);
  }
  