malloc/subprojects/libft/ft_putchar_fd.c

20 lines
991 B
C
Raw Normal View History

2019-04-24 20:59:37 +03:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/04 15:03:56 by gtertysh #+# #+# */
/* Updated: 2016/12/04 15:04:30 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putchar_fd(char c, int fd)
{
2019-05-05 19:30:06 +03:00
if (write(fd, &c, 1) == -1)
return ;
2019-04-24 20:59:37 +03:00
}