Skip to content

bricewge/get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get_next_line

return

  • 1: A lign has been read
  • 0: End of the read
  • -1: An error occured

BUFF_SIZE

Changing the BUFF_SIZE to a very big value, ex. 10000000, make the program SEGFAULT because the default size of the stack is only 8192000 byte (ulimit -Sa) so the stack oxplodes. To use the previous BUFF_SIZE you can change the size of the stack to 10000000 byte with ulimit -s 10000.

About

Reading a line on a fd is way too tedious

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published