Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 685 Bytes

File metadata and controls

13 lines (10 loc) · 685 Bytes

reading line by line from file descriptor

Screen Shot 2025-05-12 at 9 44 56 AM

Project had those requirments:

  • total of 10 functions used is the maximum
  • each function has at maximum 25 lines
  • reading as little data as possible with each call
  • for reading using the BUFFER_SIZE that can be changed
  • each returned line contains the newline character
  • no memory leaks or undefined behaviour no matter the usage
Screen Shot 2025-05-12 at 9 43 24 AM