---
description: Reading a line from a fd is way too tedious
---

# get\_next\_line

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

This project will not only allow you to add a very convenient function to your collection, but it will also make you learn a highly interesting new concept in C programming: **static variables.**



Before starting, we recommend you to watch the video below to better understand the subject. It's in french but you can add english subtitles.

{% embed url="https://www.youtube.com/watch?v=-Mt2FdJjVno" %}

_The video lasts 20 minutes but it will be the most worthwhile minutes of your life ;)_



Well, now that you have an overview of what we ask you to do, let's get started :)
