Skip to content

cardengone/get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get_next_line

Description:

get_next_line.c reads line from the file accroding to the file descriptor and writes the result to the input pointer.

  • supports reading line by line
  • supports multiple file descriptors

Installation:

  • git clone "https://github.com/cardengo/get_next_line.git"

Usage:

  • make --> compile files
  • ./gnl + file-to-raed --> launch binary
  • make clean --> delete gnl binary
  • make val --> check for memory leaks (required Valgrind)

Return value:

  • 1 --> line was read
  • 0 --> there is no more lines in the file (end of the file)
  • -1--> error occured

Comments:

Directory contains main.c and two files (in files/) for quick demonstration.

Unix systems only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published