tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Mixing F77 and C -- how?
@ 1996-10-11 13:37 Gyula Szokoly
  0 siblings, 0 replies; only message in thread
From: Gyula Szokoly @ 1996-10-11 13:37 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,

  I have to mix F77 and C code (calling F77 procedures from C), and I'm a
little bit lost. The F77 library has parameters like:

      subroutine imopen (f77nam, acmode, im, ier)
      integer acmode
      integer im
      integer ier
      character*(*) f77nam

  I don't really know what to pass. Sometimes integers are passed by
reference, sometimes as values. As for the string, I don't know. It seems
that I pass a char *, and a string length as a 5th parameter.
  So: what are the conventions? Is it documented somewhere? Is there
a library that would provide the conversions? VMS used to have it when
I did something like this.
  The primary goal is to do it under DUnix, but portability is a (minor)
issue here. I can't change the fortran interface, but have full control
over the C code. I also have 1 dimensional arrays (int/real/double).

Thanks,
  Gyula

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-10-11 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-11 13:37 Mixing F77 and C -- how? Gyula Szokoly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox