https://github.com/mvpee/42-get-next-line
My get next line (gnl) of 42 school. Very good project to parse some files for futures projects!
https://github.com/mvpee/42-get-next-line
19 42 c get gnl line next school
Last synced: about 1 year ago
JSON representation
My get next line (gnl) of 42 school. Very good project to parse some files for futures projects!
- Host: GitHub
- URL: https://github.com/mvpee/42-get-next-line
- Owner: MVPee
- Created: 2023-10-15T16:28:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T10:42:31.000Z (over 2 years ago)
- Last Synced: 2025-03-27T01:48:09.850Z (over 1 year ago)
- Topics: 19, 42, c, get, gnl, line, next, school
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
💥 get_next_line
Reading a line on a fd is way too tedious
## 💡 About the project
> _The aim of this project is to make you code a function that returns a line, read from a file descriptor._
### Instructions
**1. Using it in your code**
To use the function in your code, simply include its header:
```C
#include "get_next_line.h"
```
and, when compiling your code, add the source files and the required flag:
```shell
get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=
```
```shell
gcc -Wall -Werror -Wextra -D BUFFER_SIZE=xx get_next_line.c get_next_line_utils.c && ./a.out
```
You can use this tester made by Tripouille
* [Tripouille/gnlTester](https://github.com/Tripouille/gnlTester)

Don't copy but learn