blob: 6c9a170fc5ad477483b097e3b2836c19d4fb0c5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 10:42:34 by cacharle #+# #+# */
/* Updated: 2021/02/03 19:22:04 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putchar_fd(char c, int fd)
{
if (fd < 0 || fd > OPEN_MAX)
return ;
if (write(fd, &c, 1))
{
;
}
}
|