Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: stejk@caen.engin.umich.edu (Steven J Kassarjian)
Subject: Re: Problem calling a C function from Fortran
Date: 22 Aug 88 20:55:00 GMT	[thread overview]
Message-ID: <3e0459f9.13370@dow4.engin.umich.edu> (raw)
In-Reply-To: 1134@ssc-bee.ssc-vax.UUCP


In general, what happens when the caller and the subroutine
disagree as to the argument list of the subroutine.
Specifically, the main body of the program called the
subroutine like this
...
      CALL CONFUS (A, B, C)
...
while the subroutine was defined this way
      SUBROUTINE CONFUS (A, B)
....

What happened was that C was always zero, though I think that
this is due to the compiler initializing C to zero.

I am interested in what would (and probably did) happen, with
all the nitty-gritty (and dirty) details.  :-)

Also, what would happen in the reverse case (where the caller
doesn't supply an argument)?

Thanks (in advance) for the info.
steve.

p.s. how do you start a new discussion, with a new title, etc.?

                        steve kassarjian
+-----------------------------------------------------------------+
| All opinions are                        Eunichs:  the operating |
| local and undefined                                  system for |
| outside of unit.                                      real men. |
+-----------------------------------------------------------------+
                    stejk@caen.engin.umich.edu


      parent reply	other threads:[~1988-08-22 20:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-08-19 17:54 Problem calling a C function from Fortran Nathan Okinaka
1988-08-21 16:35 ` Larry Jones
1988-08-22 20:37   ` String passing (was :Re: " Rajiv Agrawal
1988-08-30 13:15     ` rbt
1988-08-22  3:47 ` Gil Kloepfer Jr.
1988-08-22 20:55 ` Steven J Kassarjian [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