Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Shlenov Svyatoslav" <shlenov@fort.phys.msu.su>
Subject: Re: passing between C and Fortran
Date: 1995/11/16	[thread overview]
Message-ID: <30abd3e5@fort.phys.msu.su> (raw)
In-Reply-To: 48aa3t$9im@news.cea.fr

>... and inside the Fortran,
>i need to call some C functions.
>
>>>> file c2.c <<<
>void recupfort(ic)

Instead of using
>$ALIAS recupfort='recupfort'(%val)
in the Fortran program

you may name the C-program like

            void recupfort_(int* ic)

and call it from inside Fortran as

            call recuport(ic)   (without _ )

but of course the C-program in this case should deal with pointers.

S. Shlenov.



      parent reply	other threads:[~1995-11-16  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-14  5:00 passing between C and Fortran francois CARTIER
1995-11-15  5:00 ` Juergen Fuhrmann
1995-11-16  5:00 ` Steve Lionel
1995-11-16  5:00 ` Shlenov Svyatoslav [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox