How do I access f77 common variables from C ?
Powell
jdp at adiron.UUCP
Thu Jul 28 03:11:12 AEST 1988
On some systems, the global structure works (Berkeley).
On at least SILICON GRAPHICS, a structure has to be defined in C
and the common block in Fortran and a subroutine accepting a pointer
to the first type in the common area has to be written in Fortran
and called by C with the pointer to the structure. In addition,
a bridge routine has to be created in order to call Fortran from C.
Good Luck.
jdp
More information about the Comp.lang.c
mailing list