Skip to content

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

reomelo/42Porto-get_next_line

Repository files navigation

Screenshot from 2023-11-01 17-33-46

Description of the project:

This project consists on the creation of a function that reads a file, line per line. To try this project, you can use the commented main function in the get_next_line.c (mandatory) or the get_next_line_bonus.c (bonus) file. The difference between the mandatory and the bonus part is that the mandatory can only read from a single file, while the bonus can read from multiple files.

Installing and running the project:

1- Clone this repository and enter it:

git clone https://github.com/reomelo/42Porto-get_next_line.git && cd 42Porto-get_next_line

2- Run make and compile your program with the required files:

make && cc -Wall -Wextra -Werror main.c get_next_line.c get_next_line_utils.c (mandatory)

3- To test the bonus:

make && cc -Wall -Wextra -Werror main.c get_next_line_bonus.c get_next_line_utils_bonus.c (bonus)

At 42School, almost every project must be written in accordance to the Norm. As a result, parts of the code are not as clean, efficient or straight forward as they could be.

About

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