ft_putendl_fd - chanhl22/libft GitHub Wiki

  1 /* ************************************************************************** */          
  2 /*                                                                            */
  3 /*                                                        :::      ::::::::   */
  4 /*   ft_putendl_fd.c                                    :+:      :+:    :+:   */
  5 /*                                                    +:+ +:+         +:+     */
  6 /*   By: chanhlee <[email protected].>       +#+  +:+       +#+        */
  7 /*                                                +#+#+#+#+#+   +#+           */
  8 /*   Created: 2021/01/26 11:54:29 by chanhlee          #+#    #+#             */
  9 /*   Updated: 2021/02/02 12:55:32 by chanhlee         ###   ########.fr       */
 10 /*                                                                            */
 11 /* ************************************************************************** */
 12 
 13 #include "libft.h"
 14 
 15 void ft_putendl_fd(char *s, int fd)
 16 {
 17     if (!s)
 18         return ;
 19     ft_putstr_fd(s, fd);
 20     ft_putchar_fd('\n', fd);
 21 }