diff options
Diffstat (limited to 'ft_putstr_fd.c')
| -rw-r--r-- | ft_putstr_fd.c | 22 |
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); -} -*/ |
