Xref: utzoo comp.lang.c:36256 comp.lang.fortran:4794 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: mixing fortran and c Message-ID: <4780@goanna.cs.rmit.oz.au> Date: 18 Feb 91 07:46:59 GMT References: <160@mailgzrz.tu-berlin.de> Followup-To: comp.lang.c Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 15 In article <160@mailgzrz.tu-berlin.de>, duns1222@w203zrz.zrz.tu-berlin.de (Martin Dunschen) writes: > Hi all you high experienced C/FORTRAN programmers! > > We have a problem which is probably solved by some of you. > HOW TO PASS STRINGS ? The answer is "it depends". Which C are you using and which Fortran? For UNIX, AEGIS, and VMS, the answer is in (Fortran documentation, C documentation, C documentation) -- from memory. (Yes, the answer really is there in a complete UNIX documentation set. Or use f2c.) The usual technique in UNIX is to pass an extra int parameter for each character*(_) variable giving the length for that variable, after all the other parameters. -- Professional programming is paranoid programming