paotsaq / get_next_line

42 assignment; this is a short and sweet implementation of GNL made in preparation for the exam.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_next_line will be easy, they said...

...and it actually was, if you keep it simple without any unnecessary foolishness 🤷‍♂️

Considering it was easy, do you have anything else to add?

Not really. My previous implementation was really ugly (I mean, really ugly). And since the school requires us to code the function in the exam, I figured best to give this a second try while also going for the bonus - which is very easy.

There is a slight compromise in the definition of the static variable - I'm assuming there are no lines longer than 4096 chars.

About

42 assignment; this is a short and sweet implementation of GNL made in preparation for the exam.


Languages

Language:C 100.0%