the code on that link is in C. And i think its in CCS compiler format.

So can anyone help me with the code? I've run it and it doesn't seem to be working.