get_next_line
by bhagenlo
written for version 10
Hello again. Glad you're here.
True to this spirit, this project finally arrives at the heart of C Programming: Allocating memory.
It's not much code you have to write, but also not that easy to get it right. Especially when freeing.
It's not much code you have to write, but also not that easy to get it right. Especially when freeing.
Well, if your program is working – and I'm sure you tested it thoroughly, with a checker and for yourself, everything should be fine.#Cleaning Up
Except for:*_bonus.h
header file in your bonus files?
You made it through? Nice! Well, there's not so much to do here: Write a small program that actually uses #Aftercare
get_next_line()
. How about something you can pipe input into, and which then returns it line by line?
λ echo "Hello, it's me." | ./your_echo
Hello, it's me.
λ
Nice, up to greater quests!
And may your memory always be freed.