Random C code that I've written.