libft / ft_putendl_fd.c 109 commits
14-04-2026
19 lines 1.0 kB
 1/* ************************************************************************** */
 2/*                                                                            */
 3/*                                                        :::      ::::::::   */
 4/*   ft_putendl_fd.c                                    :+:      :+:    :+:   */
 5/*                                                    +:+ +:+         +:+     */
 6/*   By: mleitao <mleitao@student.42.fr>            +#+  +:+       +#+        */
 7/*                                                +#+#+#+#+#+   +#+           */
 8/*   Created: 2026/03/16 01:05:28 by mleitao           #+#    #+#             */
 9/*   Updated: 2026/04/14 19:21:12 by mleitao          ###   ########.fr       */
10/*                                                                            */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15void	ft_putendl_fd(char *s, int fd)
16{
17	ft_putstr_fd(s, fd);
18	ft_putchar_fd('\n', fd);
19}