Useful code for projects written in C.