Skip to content

GNL - a function that returns a line ending with a newline, read from a file descriptor.

License

Notifications You must be signed in to change notification settings

psprawka/Get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Next Line 📝

The goal of this project is to write a function that reads a line ending with a newline character ('\n') from a file descriptor. The size of the line is unknown for the function. Get_next_line introduces to a highly interesting new concept in C programming: static variables and their proper and efficient usage.

Installation:

git clone https://github.com/psprawka/Get_next_line.git

Return value:

  • return 1 when it read a line
  • return 0 when it finished reading a file
  • return -1 when an error occurs

My score for Get Next Line:

About

GNL - a function that returns a line ending with a newline, read from a file descriptor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published