Project in school 42. The purpose of this project is to write own function that replicates the behaviour of the standard function С getline()
.
Prototype of the function looks like:
int get_next_line(int fd, char **line);
The function take two parameters:
fd
- file discriptor for readingline
- value of what has been read
The function can return next values:
1
- if line has been read and you can continue reading0
- if reached EOF-1
- if happened some error