GET NEXT LINE

42 Project

DESCRIPTION

This project is about making a function that returns a line ending with a newline, read from a file descriptor.

PROTOTYPE

char  *get_next_line(int fd);
  • fd: file descriptor for reading
  • line: The value of what has been read

RETURN VALUES

  • 1 : A line has been read
  • 0 : EOF has been reached
  • -1 : An error happened

HOW TO USE

git clone git@github.com:dugonzal/get_next_line.git
cd get_next_line/src
make
``

## HOW TO TEST
cd src/ && make

AUTHOR

  • Duvan Gonzalez - [ dugonzal ]