/Get_Next_Line_42

This project is about programming a function that returns a line read from a file descriptor.

Primary LanguageC

Get Next Line


Description

This projects is about creating a function that, allows to read a line ending with a newline character ('\n') from a file descriptor, without knowing its size beforehand. One of the goal of this project is to learn a highly interesting new concept in C programming: static variables, and to gain a deeper understanding of allocations, the manipulation and the life cycle of a buffer, the unexpected complexity implied in the use of one or many static variables.