Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: rbt@cernvax.UUCP (rbt)
Subject: Re: String passing (was :Re: Problem calling a C function from Fortran
Date: 30 Aug 88 13:15:32 GMT	[thread overview]
Message-ID: <809@cernvax.UUCP> (raw)
In-Reply-To: 20518@tut.cis.ohio-state.edu

In article <20518@tut.cis.ohio-state.edu> rajiv@tuna.cis.ohio-state.edu (Rajiv Agrawal) writes:
>While on the subject of C and FORTRAN on VMS ... How does one pass
>strings between the two compilers???  We have VAX FORTRAN and GnuC
>compilers.  I just cannot pass any strings between a C routine and a
>FORTRAN routine.



The problem is that FORTRAN programs use the CLASS_S descriptor mechanism while
C modules have zero terminated strings by default.

The best way to solve your problem is described in chapter "Using VAX C Features
on VMS" of "Guide to VAX C" manual. It describes how function parameters must
be declared to be conformant to the CLASS_S descriptor class.

The only problem in doing this is that ALL the modules calling the C routine  
MUST have their parameters defined as CLASS_C descriptor, otherwise...

	Roberto Divia`
	=============


  reply	other threads:[~1988-08-30 13:15 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 [this message]
1988-08-22  3:47 ` Gil Kloepfer Jr.
1988-08-22 20:55 ` Steven J Kassarjian
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