-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar_fd.c
33 lines (30 loc) · 1.15 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
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: acalin-b <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/22 09:09:50 by acalin-b #+# #+# */
/* Updated: 2023/03/22 09:35:01 by acalin-b ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}
//int main(void)
//{
// int fd;
// char buf[100];
// char *str;
//
// str = "Hello World!";
// fd = open("test.txt", O_RDONLY);
// read(fd, buf, 100);
// printf("%s", buf);
// close(fd);
// return (0);
//}
//