프로그래밍/C
2024. 8. 31.
[utility] get_next_line 구현하기
📌 매뉴얼 (in subject)더보기Function name get_next_line Prototype char *get_next_line(int fd); Parameters fd: The file descriptor to read from: 읽어온 파일 디스크립터 Return value Read line: correct behavior / NULL: there is nothing else to read, or an error occurred: 올바른 동작은 줄 1줄 읽어오는 것이고, 읽을 게 없거나 에러가 발생하면 NULL을 반환한다 External functs read, malloc, free Description Write a function that r..