home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!cwi.nl!dik
- From: dik@cwi.nl (Dik T. Winter)
- Newsgroups: comp.lang.c
- Subject: Re: c<->fortran
- Message-ID: <7183@charon.cwi.nl>
- Date: 30 Aug 92 12:22:38 GMT
- References: <1992Aug30.112532.11192@cs.hw.ac.uk>
- Sender: news@cwi.nl
- Organization: CWI, Amsterdam
- Lines: 19
-
- In article <1992Aug30.112532.11192@cs.hw.ac.uk> suthan@cs.hw.ac.uk (Manickam Umasuthan) writes:
- > Dear Netters,
- > I tried the following piece of code which interfaces with a fortran routine
- > which in turn uses the EXTERNAL statement and the external function is defined
- > in C. But in my machine the output is wrong. I like to know where the error
- > is.
- Try the following change:
- > subroutine start(fname,x)
- > EXTERNAL fname
- > real x
- add: double precision fname
- > print*, fname(x)
- change this to:
- print *, fname(dble(x))
- > END
- --
- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland
- home: bovenover 215, 1025 jn amsterdam, nederland
- dik@cwi.nl
-