The C–Pascal Interface
135
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