Patch delete_file_node function, create bonus (copy)
authorLukas Jiriste <ljiriste@student.42prague.com>
Wed, 25 Oct 2023 13:33:14 +0000 (15:33 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Wed, 25 Oct 2023 13:33:14 +0000 (15:33 +0200)
commit2e1bc5b5520d0ed88b0298e2224aa31644938abe
tree90fdbcb812237d64f48d0a809c2a1f6e81208f9c
parent9d7a077a055bc9aa3769c281ba360cf91cd390de
Patch delete_file_node function, create bonus (copy)

The function delete_file_node made the static list NULL when deleting
the first entry. When there is more than a single entry in the list this
leads to loss the rest of the list. When get_next_line would be called
on file descriptor saved in such a "forgotten" list, it would not be
able to retrieve the data previously loaded to the files buffer.

Because bonus functions were implemented in the basic files, bonus files
are created by their duplication. This is needed to let moulinette
recognize bonus.
get_next_line.c
get_next_line_bonus.c [new file with mode: 0644]
get_next_line_bonus.h [new file with mode: 0644]
get_next_line_utils_bonus.c [new file with mode: 0644]