-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathft_putchar_fd.c
22 lines (19 loc) · 1.01 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: mihykim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 15:43:11 by mihykim #+# #+# */
/* Updated: 2020/04/07 01:49:45 by mihykim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Outputs the character 'c' to the given file descriptor.
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}