c2nim can translate most basic C and even Cpp code, problems can be C macros 
and cpp classes, and somtimes it generates a div instead desired / for floating 
point division. But it save some work and avoids errors.

When you change datatypes, you have to be careful, as float and integer 
arithmetic is different. Also note that in C int is often 4 byte, but in Nim 
int is 8 byte on 64 bit systems. For compatibility we have type cint which is 
the C int type.

Reply via email to