An open API service indexing awesome lists of open source software.

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.

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).