Skip to content

πŸ“– The aim of this project is to make a function that returns a line ending with a newline, read from a file descriptor.

Notifications You must be signed in to change notification settings

julienhouyet/42-get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

42-get_next_line

42-get_next_line

Introduction

The aim of this project is to make a function that returns a line ending with a newline, read from a file descriptor.

At 42 School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.

⚑ Usage

To use this library, import the "get_next_line.h" header into your files.

#include "get_next_line.h"

Compile your file with "get_next_line.c" and "get_next_line_utils.c".

You can edit the BUFFER_SIZE with -D BUFFER_SIZE=number.

Exemple :

gcc your_file.c get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=100 && ./a.out

πŸ”Œ Installation

To install the project, clone this repository :

$ [email protected]:julienhouyet/42-get_next_line.git

πŸ“„ Function in the library

βœ… get_next_line

char *get_next_line(int fd);
Returns a line read from a file descriptor.

About

πŸ“– The aim of this project is to make a function that returns a line ending with a newline, read from a file descriptor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages