libft / ft_putchar_fd.c 109 commits
14-04-2026
19 lines 990 B
 1/* ************************************************************************** */
 2/*                                                                            */
 3/*                                                        :::      ::::::::   */
 4/*   ft_putchar_fd.c                                    :+:      :+:    :+:   */
 5/*                                                    +:+ +:+         +:+     */
 6/*   By: mleitao <mleitao@student.42.fr>            +#+  +:+       +#+        */
 7/*                                                +#+#+#+#+#+   +#+           */
 8/*   Created: 2026/03/16 00:55:34 by mleitao           #+#    #+#             */
 9/*   Updated: 2026/04/14 19:20:46 by mleitao          ###   ########.fr       */
10/*                                                                            */
11/* ************************************************************************** */
12
13#include "libft.h"
14#include <unistd.h>
15
16void	ft_putchar_fd(char c, int fd)
17{
18	write(fd, &c, 1);
19}