-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar_fd.c
22 lines (19 loc) · 1.03 KB
/
ft_putchar_fd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lclerc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/09 15:30:34 by lclerc #+# #+# */
/* Updated: 2022/11/24 11:18:31 by lclerc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
* ft_putchar_fd() write the character 'c' on the give filedescriptor 'fd'
*/
void ft_putchar_fd(char c, int fd)
{
write (fd, &c, 1);
}