42_minishell/libftx/printf/ft_putchar_fd.c

20 lines
988 B
C
Raw Normal View History

2023-01-31 08:40:15 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/29 22:23:35 by cchauvet #+# #+# */
2023-02-17 10:33:52 -05:00
/* Updated: 2023/02/17 16:28:59 by cchauvet ### ########.fr */
2023-01-31 08:40:15 -05:00
/* */
/* ************************************************************************** */
#include "ft_printf.h"
2023-02-17 10:33:52 -05:00
int ft_putchar_fd_p(int fd, char c)
2023-01-31 08:40:15 -05:00
{
write(fd, &c, 1);
return (1);
}