-
Notifications
You must be signed in to change notification settings - Fork 0
Add ft_gnl function #1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a "get next line" function (ft_gnl) to the libft library for reading lines from file descriptors, and renames parameters in list manipulation functions for better clarity.
Changes:
- Adds ft_gnl function implementation with supporting helper functions for reading lines from file descriptors
- Renames parameter 'new' to 'new_node' in ft_lstadd_front and ft_lstadd_back functions for better clarity
- Improves .gitignore file with better organization and additional patterns
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ft_gnl.c | New file implementing get-next-line functionality with buffer management and line extraction |
| src/ft_lstadd_front.c | Renames parameter from 'new' to 'new_node' for clarity |
| src/ft_lstadd_back.c | Renames parameter from 'new' to 'new_node' for clarity |
| includes/libft.h | Adds BUFFER_SIZE definition, updates function declarations, and adds ft_gnl prototype |
| Makefile | Adds ft_gnl.c to the source files list |
| .gitignore | Fixes malformed pattern and adds comprehensive ignore patterns |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
[WIP] WIP: Address feedback on Add ft_gnl function pull request
No description provided.