feat: removing the file_converted

This commit is contained in:
Raphael 2025-12-21 00:18:31 +01:00
parent 8445a8c956
commit 00f9484dc4
No known key found for this signature in database

View file

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