Path: 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 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