richardmarcela / 42-get_next_line

This is a 42 project. The purpose is to implement the function get_next_line which returns one line at a time from a text file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_next_line

image

This is a 42 project. The purpose is to implement the function get_next_line which returns one line at a time from a text file. In this project you'll understand how files are opened, read and closed in an OS, and how they are interpreted by a programming language for further analysis.

But how can I run this project?

1 - First things first, you need to include the header:

#include "get_next_line.h"

Or, in case of bonus, you need to include the header of bonus:

#include "get_next_line_bonus.h"

2 - To compile, use the source files and the required flag:

cc get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=<size>

💡 Tip! You can use scripts such as:

Tripouille/gnlTester

and that's basically it! :)

About

This is a 42 project. The purpose is to implement the function get_next_line which returns one line at a time from a text file.


Languages

Language:C 100.0%