Daily Archives: January 2, 2014

Fold and beyond

So today i was writing a post about memory leaks and how they can be very frustrating. The whole topic is very big, obviously, so even writing a small post is taking more time than expected. Apart from that i was wrestling with fold.c from yesterday. My problem there are not memory leaks, but mostly a lack of understanding how that thing should work. I have to take a pen and piece of paper and just make it work that way first.

Still looking for a decent, quick-to-learn testing solution for making sure my C code works. I very well may have to come up with a solution myself. But since i am too lazy, i very well may not.

Right now my testing process looks like this:
rm a.out ; gcc fold.c; echo "thisisreallylongstring" | ./a.out

That’s it for today.