6

The commands to compile and execute UseFilePtc.c and UseFilePtrMain.p

hostname% cc -c UseFilePtr.c

hostname% pc UseFilePtr.o UseFilePtrMain.p hostname% a.out

hostname% cat myfile.data

[1]Passing the file descriptor

[2]and writing information

[3]to a file

The C–Pascal Interface

135

Page 159
Image 159
HP SunSoft Pascal 4.0 manual C-Pascal Interface 135