libft/print/ft_putchar_fd.c
Raphael 905ffd4b72
refactor: only the usefull header
- Removing all 'libft.h' mention
- Using the include only on the files needed by
2025-09-01 18:45:33 +02:00

24 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/09 13:58:22 by rparodi #+# #+# */
/* Updated: 2025/09/01 17:46:44 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
/**
* @brief print an character on a file descriptor
*
* @param c the character to print
* @param fd the file descriptor
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}