podefteza / get_next_line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Next Line - Reading a line from a fd is way too tedious ๐Ÿ“„

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. "

About


Languages

Language:C 100.0%