I, and I think many others, have had great success using smart pointers to wrap up unsafe memory operations in C++, using things like RAII, et cetera. However, wrapping memo
Ok, so here are your options. Ideally, you combine them to get better result. In case of C, paranoia is fine.
Compile-time:
Runtime: