Program in C?  (Without using IDE, etc)

Try doing a forum search for "jbremnant tarball" and look at replies 116, 118, 122 and 124 of that thread and see if that's what you want.

Andrew