Skip to content

wickedpool/Get_next_line-42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                               ############################
                               ####### GET_NEXT_LINE ######
                               ############################

Read on file descriptor

Techno

C Language


How to use?

You'll have to clone the GNL repo by taping :

    git clone https://github.com/wickedpool/Get_next_line-42.git gnl

Then you'll have to compile the project :

    cd gnl

    gcc -Wall -Wextra -Werror get_next_line.c main.c get_next_line.h libft/libft.a

Now you can run ./a.out <file.txt>

In the get_next_line.h file, You can change the BUFFSIZE.

Get_Next_line will return 1, 0 or -1 if the program rode the file or not.

The main.c file will print what GNL is reading.

    E N J O Y ^^

[What it looks like while running]

About

read on file descriptor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published