https://github.com/publioelio/school-42-get_next_line
This is a repository for the School 42 Málaga cursus project get_next_line. This function reads a file descriptor and returns a line, until the first line break.
https://github.com/publioelio/school-42-get_next_line
42cursus 42project c-programming ecole42 get-next-line get-next-line-bonus school-42-malaga school42
Last synced: 4 days ago
JSON representation
This is a repository for the School 42 Málaga cursus project get_next_line. This function reads a file descriptor and returns a line, until the first line break.
- Host: GitHub
- URL: https://github.com/publioelio/school-42-get_next_line
- Owner: PublioElio
- Created: 2022-10-10T06:44:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-27T21:41:38.000Z (over 3 years ago)
- Last Synced: 2025-03-10T18:15:29.365Z (over 1 year ago)
- Topics: 42cursus, 42project, c-programming, ecole42, get-next-line, get-next-line-bonus, school-42-malaga, school42
- Language: C
- Homepage:
- Size: 1.22 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
School 42 get_next_line()
This is the repository for the School 42 Málaga cursus project`get_next_line()`.
About
·
Index
·
Requirements
·
Instructions
·
Testing
## About
The goal of this project is to create the function `get_next_line.c` which, when called in a loop, will read one line at a time in the __file descriptor__, until the end of the file. As stated in the subject, the program must compile with the `flag-D BUFFER_SIZE=` which will be used as the buffer size for the `read` calls in `get_next_line()`. You can find more details in [the subject of the project](https://github.com/PublioElio/School-42-Get_Next_Line/blob/main/get_next_line.es.subject.pdf).
This project is a introduction of __static variables__, which will be very useful for future projects. Also, as noted earlier, we'll learn how handle macros during compilation.
## Testing
This function have been tested with [Francinette](https://github.com/xicodomingues/francinette).