home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:20077 comp.lang.fortran:5126
- Newsgroups: comp.lang.c,comp.lang.fortran
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
- From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Subject: Re: calling a Fortran subroutine from a C program
- References: <1jmqdaINN11g@mudhoney.mathcs.emory.edu> <1993Jan22.130743.27130@sol.ctr.columbia.edu>
- Message-ID: <C19LFE.AL2@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Organization: MRL - UIUC
- Date: Fri, 22 Jan 1993 16:49:59 GMT
- Lines: 21
-
- In article <1993Jan22.130743.27130@sol.ctr.columbia.edu>, bobp@msi.com (Bob Pitha) writes:
- |>Scott White (swhite@mathcs.emory.edu) wrote:
- |>: Also, the called Fortran routine takes variables which are arrays as
- |>: parameters. And, I looked and saw that the subscripts start at 1, whereas in
- |>: C they start at zero. That's no problem is it (an address is an address):
- |>
- |> No, it's no problem, assuming you remember it everywhere. It only makes
- |>it a bit easier to make one of those annoying off-by-one subscript errors!
-
- Perhaps not everybody is familiar with the fact that you can have the
- indexes matching by declaring, for example,
- real*8 array(0:99)
- in the Fortran program.
-
- --
- furio ercolessi <furio@uiuc.edu>* <furio@sissa.it>+
- * materials research lab, uni illinois at urbana-champaign
- + intl school for advanced studies, trieste, italy
-
- "Change nothing and continue with immaculate consistency"
- [ Brian Eno, "Oblique Strategies" ]
-