int get_next_line(int fd, char **line);
get_next_line.c,ย get_next_line_utils.c,ย get_next_line.h
#1. ํ๋ก๊ทธ๋จ์ด ์ฝ์ ํ์ผ ๋์คํฌ๋ฝํฐ(file descriptor for reading)
#2. ์ฝ์ด์๋ ๊ฐ(The value of what has been read)
1 : ํ ๋ผ์ธ์ด ์ฝํ์ ๋(A line has been read)
0 : EOF์ ๋๋ฌํ์ ๋(EOF has been reached)
-1 : ์๋ฌ๊ฐ ๋ฐ์ํ์ ๋(An error happened)
ํ์ผ ๋์คํฌ๋ฝํฐ๋ก๋ถํฐ ์ฝ์ด ์จ ํ๋์ ๋ผ์ธ(newline ์์ด)์ ๋ฐํํ๋ ํจ์ ์์ฑ
Write a function which returns a line read from a file descriptor, without the newline