Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get next line documentation incorrect after subject update #57

Open
RubenNijhuis opened this issue Mar 16, 2022 · 0 comments
Open

Get next line documentation incorrect after subject update #57

RubenNijhuis opened this issue Mar 16, 2022 · 0 comments

Comments

@RubenNijhuis
Copy link

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.

@RubenNijhuis RubenNijhuis changed the title Get next line documentation needs updating after updated subject Get next line documentation incorrect after subject update Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant