itkrivoshei / Get-Next-Line

Get next line is a function that reads a file line by line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get_Next_Line

Get next line is a function that reads a file line by line created for 42

Installation

git clone https://github.com/IT-Krivoshey/Get-Next-Line.git

Build

  • To compile and generate a static C library named libft.a
    • cd Get_Next_line/libft
    • make
  • To remove objects:
    • make clean
  • To remove objects and binary file (program):
    • make fclean
  • To re-compile:
    • make re

Executing

  • To test the function, compile with main.c.
    • cd Get_Next_Line
    • gcc main.c get_next_line.c
    • ./a.out LICENSE

Return value

  • Return 1 when it read a line
  • Return 0 it finished reading a file
  • Return -1 if error

License

This project is licensed under the LGPLv3 License - see the LICENSE file for details.

About

Get next line is a function that reads a file line by line

License:GNU General Public License v3.0


Languages

Language:C 96.9%Language:Makefile 3.1%