glllcs / get_next_line

Function that reads one or multiple files and returns line by line, ending with a newline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The objective of this project is to code a function that reads one or multiple files and returns line by line, ending with a newline.

Here, I also implemented a main to test the project. It's possible to test with one or two files, besides the standard input.

Instalation and Usage

git clone https://github.com/glllcs/get_next_line.git && \
cd get_next_line/tests && \
gcc -Wall -Wextra -Werror -D BUFFER_SIZE=1 ../srcs/get_next_line.c ../srcs/get_next_line_utils.c main.c

To read standar input (Ctrl + C to exit):

./a.out

To read only one file:

./a.out test1.txt

To read two files:

./a.out test1.txt test2.txt

gnl_universe

About

Function that reads one or multiple files and returns line by line, ending with a newline


Languages

Language:C 100.0%