Skip to content

chaotic-binary/get_next_line

Repository files navigation

A function which returns the next line from a file descriptor each time the function is called, without losing the reading thread.
Bonus is handling multiple file descriptors without losing thread of reading on any.
Calling get_next_line in a loop will then allow you to read the text available on a file descriptor one line at a time until the EOF.
Function uses the BUFFER_SIZE defined during compilation to read from a file or from stdin.

Example compilation: gcc -Wall -Wextra -Werror -D BUFFER_SIZE=42 get_next_line.c get_next_line_utils.c

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages