Skip to content

Get_next_line is a C function that reads lines from a file descriptor.

Notifications You must be signed in to change notification settings

Archips/get_next_line

Repository files navigation

Get Next Line

This project involves creating a C function, get_next_line, that reads lines from a file descriptor. The function should return each line one at a time upon repeated calls.

Score

  • 125%

Project Highlights

  • Efficiently reads lines from a file descriptor
  • Uses static variables for improved performance
  • Optional bonus part for handling multiple file descriptors

Usage

  1. Include the provided header file, get_next_line.h, in your C program.
  2. Call the get_next_line function with the file descriptor you want to read from as an argument.
  3. The function will return each line from the file one at a time until there are no more lines to read or an error occurs.
  4. Make sure to manage memory properly and handle errors as needed in your code.

Author

Archibald Thirion

About

Get_next_line is a C function that reads lines from a file descriptor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages