Just to let you know this is primarily a PicBASIC forum so finding something here in C may be tough.

If that doesn't daunt you then I'd go to the MELABS site and look for their programs. They have some blinking light programs and sequence stuff.