From 00f9484dc4072b93a8f9dd3ce639046f2270bccf Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 21 Dec 2025 00:18:31 +0100 Subject: [PATCH] feat: removing the file_converted --- get_next_line.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/get_next_line.c b/get_next_line.c index a563dcc..6f4a5f5 100644 --- a/get_next_line.c +++ b/get_next_line.c @@ -33,29 +33,6 @@ char *ft_check(char *memory, int fd) return (memory); } -char *file_converted(int fd) -{ - size_t i; - int read_bits; - char *str; - char c; - - i = 0; - c = 1; - read_bits = 1; - str = (char *)malloc(sizeof(char) * BUFFER_SIZE); - if (!str) - return (NULL); - while (read_bits != 0 && i < BUFFER_SIZE) - { - read_bits = read(fd, &c, 1); - str[i] = c; - i++; - } - str[i] = '\0'; - return (str); -} - char *ft_free(char *str) { free(str);