(j3.2006) Question about 29113
Thu Oct 2 04:07:17 EDT 2014
On Thu, 2014-10-02 at 17:00 +0900, Malcolm Cohen wrote:
> > How about the case that the "C
> >function" is actually an interoperable Fortran subprogram?
> If you are writing purely in Fortran there is no need for C_PTR et al
> whatsoever. Just use real Fortran pointers.
If you acquire a subprogram written in Fortran (but you don't know that
because you don't get source code), which was intended to be usable from
C, you have the described situation. You don't know you can get by with
Fortran pointers. In fact, since you don't have source for the code
that appears to be in C but is actually in Fortran, you can't change it
(and its interface) to use Fortran pointers.
More information about the J3