-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putchar_fd.c
23 lines (20 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: */
/* +:+ +:+ +:+ */
/* By: avaliull <avaliull@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/16 11:32:57 by avaliull #+# #+# */
/* Updated: 2024/12/15 13:47:17 by avaliull ######## odam.nl */
/* */
/* ************************************************************************** */
#include <unistd.h>
static inline void ignore_result(ssize_t unused_result)
{
(void) unused_result;
}
void ft_putchar_fd(char c, int fd)
{
ignore_result(write(fd, &c, 1));
}