Miscellaneous C/C++ code I find myself needing for projects.