-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar_fd.c
27 lines (25 loc) · 1.13 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
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pix <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/18 10:30:45 by stales #+# #+# */
/* Updated: 2022/04/04 02:56:48 by pix ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <unistd.h>
/**
* @brief Write the character c to the file file_descriptor fd
*
* @param c Character to write
* @param fd File descriptor
*
* @return (void) None.
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}