Reading a line on a fd is way too tedious!
The aim of this project is to code a function that returns a line, read from a file descriptor.
Files in this project.
Name | in Repo? | allowed? |
---|---|---|
get_next_line.c | ✔️ | ✔️ |
get_next_line.h | ✔️ | ✔️ |
get_next_line_utils.c | ✔️ | ✔️ |
README.md | ✔️ | ❌ |
me.c | ✔️ | ❌ |
me.txt | ✔️ | ❌ |
Learn about time management, resource management and value to have good friends close to you.
And a little bit more about pointers, pointer to pointers, file descriptors, READ, OPEN, buffer, how to define a variable during compilation.
Also good to focus in minimize lines of functions and how to use fsanitize and gdb.
Good to know to don't trust codes/testers from other people and start making your own.