Implementing smart pointers for the C programming language
I am a big fan of C, but some part of me always yearn to have just
enough higher level constructs.
The impracticality of memory allocation in C is one of my pet peeves.
Being very easily distracted, I tend to forget to free my memory, or
close my resources, so you might guess that when I learned about
smart pointers in C++, I was immediately hooked.
As a freshman in my IT engineering school, our first semester was mostly
about programming in C. We were assigned pretty simple, solo projects,
unti...
Read more at snai.pe