8

The commands to compile and execute StruChr.f and StruChrmain.p

hostname% f77 -c StruChr.f

StruChr.f:

struchr:

hostname% pc StruChr.o StruChrmain.p -lpfc -lF77

hostname% a.out v.chrstr = "oyvay" v.nbytes = 5

Variant Records

You can construct FORTRAN equivalents of variant records. There is some variation with architecture, and sometimes you need to adjust the alignment.

The FORTRAN–Pascal Interface

195