These are pieces of code I have written for various projects

Blogging

Games

UNIX code

You can use this as starter code for anything from a game to a text editor. There is also a command line switch (-v) to enable VI directional keys (hjkl) instead of the arrow keys.
I went out of my way to document it well, so it shouldn't be too hard to understand if you know C and UNIX.

For Nano text editor

For ConQuery, a Mozilla web browser plugin

For email processing and checking

For Palm OS