Skip to content

function to read from file descriptor, one line to one call

Notifications You must be signed in to change notification settings

NittenRenegade/get_next_line

Repository files navigation

Allowed functions: read, malloc, free Input: file descriptor to read from Return: readed line (with \0 ended)

get_next_line() read the text on file descriptor one line at a time until end of it. Function compille with flag -D BUFFER_SIZE=xx If there is nothing to read or if an error occured it should return NULL. The returned line should include the '\n' if it occured in file.

Bonus: to be able manage multiple file descriptors with random call order.

About

function to read from file descriptor, one line to one call

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages