Hi,
I have a function in C. I want to call this function from Fortran. This function contains 2 structures passed by pointer. How do I do this in Fortran?
Ex:
struct a
{
int x;
float y;
};
struct b
{
int p;
float q;
};
In C:
fun(*a,*b);
How do I call this from Fortran? Here a
is the input structure and b
is the output structure. I am able to fill the structures in Fortran but they are unable to maintain any data after passing.
How do I call fun(*a,*b)
in Fortran?