calling c routines from fortran

Liz Heller lizh at athena.UUCP
Fri Nov 16 03:33:02 AEST 1984


Has anyone had experience with calling c routines from fortran 77 on 4.2
unix? Know of any articles, pitfalls? The way I'm thinking of doing it
is as follows (fortran 77 program "x" really wants to call c routine "z",
but instead calls c routine "y"):

	"x"
	  call to "y"

	"y"
	  manipulate arguments for call to "z"
	  call to "z"

	"z"
	  ...

The c routines are fixed - I can't change the way they're called. Anyone
know a better way to do this?

Liz Heller



More information about the Comp.lang.c mailing list