libft_old/extended_libft/ft_putchar_fd.c
Willem Haffmans 326f52308e all
2024-07-26 22:32:04 +02:00

22 lines
1014 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/05 18:42:08 by whaffman #+# #+# */
/* Updated: 2024/07/08 22:52:28 by whaffman ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "libft.h"
void ft_putchar_fd(char c, int fd)
{
if (fd < 0)
return ;
write(fd, &c, 1);
}