Skip to content

May it be a file, stdin, or even later a network connection, you will always need a way to read content line by line.

Notifications You must be signed in to change notification settings

Javisanchezf/42Malaga-get_next_line

Repository files navigation

Get_next_line by javisanchezf

School 42 Málaga cursus project.

This repository contains all archives for the project get_next_line in the School 42 Málaga core cursus. It's a custom-made function in C language. The repository includes the Makefile and the get_next_line.h library.

About

You can find more information in the subject.

The code in this repository follows the rules of the Norminette.

Index

Replicates the operation of the printf function.

Requirements

The library is written in C language and needs the gcc compiler, with <stdlib.h>, <fcntl.h> and <unistd.h> standard libraries to run.

Instructions

1. Download the repository

git clone https://github.com/Javisanchezf/42Malaga-get_next_line.git 42Malaga-get_next_line
cd 42Malaga-get_next_line

2. Compiling the library

For basic functions:

make all

For bonus functions:

make bonus

3. Cleaning all binary (.o) and executable files (.a)

To delete all files generated with make, go to the path and run:

make fclean

4. Using it in your code

To use the library functions in your code, simply include this header:

#include "get_next_line.h"

Testing

This library have been tested with the normal mode of Francinette to the date of 23/03/2023.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You are free to:

  • Share: copy and redistribute the material in any medium or format.
  • Adapt: remix, transform, and build upon the material.

Under the following terms:

  • Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial: You may not use the material for commercial purposes.
  • ShareAlike: If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

Share the content!

About

May it be a file, stdin, or even later a network connection, you will always need a way to read content line by line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published