Now, both for ethical reasons and due to DaniWeb TOS, we cannot just give you the code.
I am assuming this a class assignment, or some sort of training exercise, since, as said, for any sort of work project the logical solution would be to compile the C code.