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

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!

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)

![image](https://github.com/MVPee/42-Get-next-line/assets/93082514/ea9b8433-b5e6-4e80-9722-01a14e1870ec)

Don't copy but learn