mixing fortran and c

Dik T. Winter dik at cwi.nl
Sat Feb 16 10:18:53 AEST 1991


In article <160 at mailgzrz.tu-berlin.de> duns1222 at w203zrz.zrz.tu-berlin.de (Martin Dunschen) writes:
 > Hi all you high experienced C/FORTRAN programmers !
Do I qualify?
 > 
 > But the last remaining thing is:
 >       HOW TO PASS STRINGS ?
 > 
The only general answer is that the Fortran routines should not look at
the parameters as strings, but as character array's (i.e. to determine
the number of characters the routine should loop through the array
searching for a terminator, which is not provided automagically in Fortran).
If this does not satisfy you, more information is required: platform, fortran
compiler.  The answer can range from simple to impossible.  (E.g. on Alliant
systems Fortran passes the lengths of strings as parameter numbers -1, -2,
etc.)
--
dik t. winter, cwi, amsterdam, nederland
dik at cwi.nl



More information about the Comp.lang.c mailing list