This project aims to implement a function in C that reads a line from a file descriptor. This function should handle various buffer sizes efficiently and manage memory properly to avoid leaks. It also must work seamlessly with both files and standard input. Itโs a fundamental yet powerful utility to my collection of C functions. Through this project, I have also explored and implemented the concept of static variables, which are essential for maintaining state between function calls.
Score: 125/100 โ
๐ Peer Evaluations:
Evaluated by j*****: 125%
๐ฃ๏ธ "Carlos did an amazing job, his Get_next_line could handle everything I threw at it :D Congrats, happy coding!"
Evaluated by h*****: 125%
๐ฃ๏ธ "the student did a great job. and knew how to explain everything about his work. keep up the good work. "
Evaluated by a*****: 125%
๐ฃ๏ธ " I checked all the tests following the evaluation sheet, no fails. I also checked for memory leaks in some of the tests and, no leaks. He also explained me his logic and answered questions. I also checked on the .h for the def of BUFFER_SIZE, its ok. Thank you for the evaluation and for your time! Congrats for the good work. "