Skip to content
Prev 11814 / 398502 Next

FORTRAN charcter strings

On Thu, 21 Jun 2001, Thomas Dick wrote:

            
Why should it?  Why should the designer of a Fortran compiler anticipate
that Thomas Dick would want to call subprograms from a C routine and pass
in C character strings, and then spend time writing code to meet his
wishes?
No.  Not even the matching g77 works.  *But* translation by f2c will work.

Otherwise write a wrapper in Fortran that avoids having to pass character
variables around.