Skip to content

My diarrhea inducing get_next_line. Questionnably complies with 42born2code's norm.

Notifications You must be signed in to change notification settings

cdittric/get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

get_next_line

My diarrhea inducing get_next_line for 42born2code.

  • Doesn't use libft 🙂
  • Handles multiple fd's but doesn't free their associated read buffer when it's empty, which would have been better.
  • Handles a '\0' in the file as far as the subject allows it (would be better if get_next_line could return the length of the line)
  • Questionnably complies to 42born2code's norm (Actually it doesn't but norminette doesn't detect it)
  • Reallocates the line buffer by adding BUF_SIZE bytes each time, which is bad for very long lines (even with a BUFF_SIZE of 4096 for a ~1MB line, complexity is O^2).
  • Obscure naming of most identifiers.
  • get_next_line.c is 42 lines long.
  • Features comments!

About

My diarrhea inducing get_next_line. Questionnably complies with 42born2code's norm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages