just some random C code snippets to overcome my biological memory limitations.