-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar_fd.c
21 lines (19 loc) · 1.02 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: estettle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/03 10:57:23 by estettle #+# #+# */
/* Updated: 2024/10/03 10:57:32 by estettle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* ft_putchar_fd()
* writes the c character to the fd file descriptor
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}