You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the docs for get next line are incorrect in a couple ways because the subject has changed since initial writing of the docs.
The prototype is incorrect as it now only requires a file descriptor and the return value has updated: int get_next_line(int fd, char **line); -> char *get_next_line(int fd);
The return value needs to be updated to say it should return a char pointer with the newline included if there is a newline the line. If there isn't any data to be read anymore it should return a NULL value.
The text was updated successfully, but these errors were encountered:
RubenNijhuis
changed the title
Get next line documentation needs updating after updated subject
Get next line documentation incorrect after subject update
Mar 16, 2022
Currently the docs for get next line are incorrect in a couple ways because the subject has changed since initial writing of the docs.
The prototype is incorrect as it now only requires a file descriptor and the return value has updated:
int get_next_line(int fd, char **line);
->char *get_next_line(int fd);
The return value needs to be updated to say it should return a char pointer with the newline included if there is a newline the line. If there isn't any data to be read anymore it should return a NULL value.
The text was updated successfully, but these errors were encountered: