Quote Originally Posted by JSoftware
I have a pet project which will ultimately(in a few decades...) be able to translate any imperative language to another

Atm it'll translate pascal to c pretty fine
WOW!! :shock:
I can't wait to see it working

The best c to pascal translator I have found is c2pas32, though it does not make miracles.
The best option is to try to understand the c code meaning and port it to pascal and, if necessary, you can isolate the piece of code you can't understand and try to pass it to translator.