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);