Hi,
To portably call a C function with an int argument,
use one of the kind parameters in the iso_c_binding module.
If your compiler supports Interoperability with C,
it should supply such a module.
On Dec 7, 2010, at 3:47 PM, Greenberg, Naomi wrote:
> Does anyone know if there is a C equivalent of selected_int_kind? I would like to write portable code for use with many compilers/machine architectures, but I have a Fortran routine that calls a C function and passes an integer variable to it that I want to declare using selected_int_kind and specifying a range.
>
> Thank you,
>
> Naomi Greenberg
> Member of the Research Staff
> Riverside Research Institute
>
> (212) 502-1718 (ph)
> (212) 502-1729 (fax)
> [log in to unmask]
>
--
Cheers!
Dan Nagle
|