HP SunSoft Pascal 4.0 User Manual

Page 159

Advertising
background image

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

Advertising