# #include /* * OHEAD outputs a CVL picture header to the specified file descriptor. * The length of the comment field is returned, unless an error occurs, * in which case -1 is returned. */ /* Joseph Pallas 9/18/80 cc -O -c ohead.c */ int ohead (fdout, newarea) int fdout; struct cvl_p *newarea; { if (write(fdout, newarea, sizeof *newarea) != sizeof *newarea) return(-1); return(newarea->cv_lcom); }