Skip to content

This projects is about creating a function that, allows to read a line ending with a newline character ('\n') from a file descriptor, without knowing its size beforehand.

License

Notifications You must be signed in to change notification settings

alexhiguera/Get_Next_Line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

	 ██████╗ ███████╗████████╗        ███╗   ██╗███████╗██╗  ██╗████████╗        ██╗     ██╗███╗   ██╗███████╗
	██╔════╝ ██╔════╝╚══██╔══╝        ████╗  ██║██╔════╝╚██╗██╔╝╚══██╔══╝        ██║     ██║████╗  ██║██╔════╝
	██║  ███╗█████╗     ██║           ██╔██╗ ██║█████╗   ╚███╔╝    ██║           ██║     ██║██╔██╗ ██║█████╗  
	██║   ██║██╔══╝     ██║           ██║╚██╗██║██╔══╝   ██╔██╗    ██║           ██║     ██║██║╚██╗██║██╔══╝  
	╚██████╔╝███████╗   ██║   ███████╗██║ ╚████║███████╗██╔╝ ██╗   ██║   ███████╗███████╗██║██║ ╚████║███████╗
	 ╚═════╝ ╚══════╝   ╚═╝   ╚══════╝╚═╝  ╚═══╝╚══════╝╚═╝  ╚═╝   ╚═╝   ╚══════╝╚══════╝╚═╝╚═╝  ╚═══╝╚══════╝

Gets_Next_Line


Description

The "Get Next Line" project is part of the 42 School program and aims to implement a function in C that reads line by line from a file or file descriptor.


Usage

To use the get_next_line program, follow these steps:

1. Compiling the program with Makefile

In the terminal, navigate to the directory where the Makefile is located. Once there, run the make command. This will compile the source code using the rules defined in the Makefile.

cd /path/to/directory
make

2. Running the program

After successfully compiling the program, an executable file will be generated. You can run it with the following command:

./program input_file.txt

About

This projects is about creating a function that, allows to read a line ending with a newline character ('\n') from a file descriptor, without knowing its size beforehand.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published