-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putchar_fd.c
24 lines (22 loc) · 1.05 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rdragan <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/05 16:52:51 by rdragan #+# #+# */
/* Updated: 2023/04/12 13:38:51 by rdragan ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
Outputs c to the given file descriptor.
@param c: character
@param fd: file descriptor
*/
int ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
return (1);
}