[comp.lang.c] C calls to Fortran subroutines on HP9000/300

cunning@caen.engin.umich.edu (Gregory Scott Cunningham) (05/24/89)

I am trying to call Fortran subroutines from a C main 
program, but don't know how to set up the call.  I can't find
any preprocessor commands like ALIAS which you can use when calling
C from a Fortran program.  The Fortran routines I want
to call are part of a general environment graphics package. 

ted@hpwrce.HP.COM ( Ted Johnson) (05/25/89)

>I am trying to call Fortran subroutines from a C main 
>program, but don't know how to set up the call. 

Check out the "HP-UX Portability Guide" manual, part # 98794-90046,
page 57.  It has an example.

>I can't find
>any preprocessor commands like ALIAS which you can use when calling
>C from a Fortran program. 

You don't need one.


-Ted