Article View: comp.lang.fortran
Article #6449Re: C subroutines in FORTRAN programs
From: Craig Steinberger
Date: Tue, 27 Feb 1990 21:47
Date: Tue, 27 Feb 1990 21:47
17 lines
1060 bytes
1060 bytes
Robert Howard was kind enough to show me how to use a C subroutine in a
FORTRAN program (see my earlier question). To do this, one must write
a C program to "drive" the subroutine. For example, if I wanted to use
the clock() C routine, I would write a C program as follows:
timer_() {
return(clock());}
(The key is to put an underscore after the C routine name)
I would then call this from the FORTRAN program like a FORTRAN
function.
Transcendentalism is all very fine, | Craig Steinberger
but how does that relate to what | SUNY at Buffalo, Aerospace Engineering
You see in the subway? | craig@fractal.eng.Buffalo.edu
Technical Details
Message-ID:
<18434@eerie.acsu.Buffalo.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!image.soe.clarkson.edu!sunybcs!craigShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!image.soe.clarkson.edu!sunybcs!craig From: craig@acsu.Buffalo.EDU (Craig Steinberger) Newsgroups: comp.lang.fortran Subject: Re: C subroutines in FORTRAN programs Message-ID: <18434@eerie.acsu.Buffalo.EDU> Date: 27 Feb 90 21:47:55 GMT Sender: nobody@acsu.Buffalo.EDU Organization: SUNY at Buffalo-CFD Lab Lines: 17