How to call a C function in Fortran and properly pass uint32_t arguments
问题 Hi I am using a Fortran 90 code to call a C function. Since I am manipulating addresses, the arguments of the C function should be properly matched in Fortran. I am using ifort and icc to compile the code and working on 64 bit machine. Some testing showed that this will work also with int32_t , although to prevent eventual pitfalls, I would like to keep the uint32_t The C functions I am calling has the following prototypes uint32_t encode_(uint32_t x, uint32_t y) uint32_t decode_(uint32_t dec