This project is about programming a function that allows you to read content line by line. This is done by returning a line read from a file descriptor.
The primary function in this project is get_next_line
, which reads from a file descriptor (fd
) and returns one line or NULL
.
Return Value:
char *
: The string containing a line read by the function.(null)
: Either an error occurred or reached EOF (End Of File).
This project includes several helper functions that the get_next_line
function utilizes:
strjoin
: Function to concatenate strings.strlen
: Function to find the length of a string.strchr
: Function to find the first occurrence of a character in a string.strdup
: Function to duplicate a string.substr
: Function to extract a substring from a string.
