summaryrefslogtreecommitdiff
path: root/ft_putchar_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_putchar_fd.c')
-rw-r--r--ft_putchar_fd.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/ft_putchar_fd.c b/ft_putchar_fd.c
index eb71264..8d81c51 100644
--- a/ft_putchar_fd.c
+++ b/ft_putchar_fd.c
@@ -21,25 +21,3 @@ void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}
-/*
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-
-int main(void)
-{
- int fd;
-
- if ((fd = open("test.txt", O_RDWR)) == -1)
- {
- printf("File Open Failed\n");
- exit(0);
- }
- else
- {
- printf("File Opened Successfully\n");
- printf("File Descriptor: %d\n", fd);
- }
- ft_putchar_fd('a', fd);
-}
-*/