Skip to content

This repository holds the contents of the get_next_line project from Codam - Amsterdam.

Notifications You must be signed in to change notification settings

Bvanderwolf/get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retrieves the next line of a text file pointed to by a given file descriptor

A project done at Codam Amsterdam.

Specifications

  1. Repeated calls (e.g., using a loop) to get_next_line should let you read the text file pointed to by the file descriptor, one line at a time.

  2. The function returns the line that was read. If there is nothing else to read or if an error occurred, it returns NULL.

  3. The returned line includes the terminating \n character, except if the end of file was reached and does not end with a \n character.


The option "-D BUFFER_SIZE=n" is added to the compilation command to add the BUFFER_SIZE maco with a variable n size.

About

This repository holds the contents of the get_next_line project from Codam - Amsterdam.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages