Program in C?  (Without using IDE, etc)

You can suck over the arduino core and libraries without installing the full Arduino app.

Core: svn checkout http://arduino.googlecode.com/svn/trunk/hardware

Libraries svn checkout http://arduino.googlecode.com/svn/trunk/libraries