https://github.com/shuygena/get_next_line
:keyboard: :soon: :desktop_computer: Function for reading one line of charset
https://github.com/shuygena/get_next_line
21school 42 42projects get-next-line
Last synced: 7 months ago
JSON representation
:keyboard: :soon: :desktop_computer: Function for reading one line of charset
- Host: GitHub
- URL: https://github.com/shuygena/get_next_line
- Owner: shuygena
- Created: 2022-05-11T09:52:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T13:14:22.000Z (over 3 years ago)
- Last Synced: 2025-01-17T02:22:42.470Z (9 months ago)
- Topics: 21school, 42, 42projects, get-next-line
- Language: C
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get_next_line
## Requirements:
gcc compiler.## Download & Compile
Clone repository:
```
git clone https://github.com/shuygena/get_next_line gnl
```
Go to directory:
```
cd gnl
```
To use the function in your code, simply include its header:
```C
#include "get_next_line.h"
```
Function Prototype:
```C
int get_next_line(int fd, char **line);
```
For compile program run:
```
gcc -Wall -Werror -Wextra -D BUFFER_SIZE=[xx] *.c
```