summaryrefslogtreecommitdiff
path: root/ft_putstr_fd.c
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2026-02-05 12:18:33 +0100
committeryctct <yctct@yctct.com>2026-02-05 12:18:33 +0100
commit472b8f20c0f74d20dbb434abce10ee86054b9975 (patch)
tree95625c0ba5a7f999c9add7f9bd55bb0f0b4dc173 /ft_putstr_fd.c
parent8403fab94b17bc63bc193037c8777b9074707287 (diff)
Remove testsHEADmain
Diffstat (limited to 'ft_putstr_fd.c')
-rw-r--r--ft_putstr_fd.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/ft_putstr_fd.c b/ft_putstr_fd.c
index a25e75d..8187b95 100644
--- a/ft_putstr_fd.c
+++ b/ft_putstr_fd.c
@@ -22,25 +22,3 @@ void ft_putstr_fd(char *s, int fd)
write(fd, s, ft_strlen(s));
}
-/*
-#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_putstr_fd("abc", fd);
-}
-*/