1: /* Copyright (c) 1979 Regents of the University of California */
   2: 
   3: static char sccsid[] = "@(#)PUT.c 1.3 6/10/81";
   4: 
   5: #include "h00vars.h"
   6: 
   7: PUT(curfile)
   8: 
   9:     register struct iorec   *curfile;
  10: {
  11:     if (curfile->funit & FREAD) {
  12:         ERROR("%s: Attempt to write, but open for reading\n",
  13:             curfile->pfname);
  14:         return;
  15:     }
  16:     fwrite(curfile->fileptr, (int)curfile->fsize, 1, curfile->fbuf);
  17:     if (ferror(curfile->fbuf)) {
  18:         PERROR("Could not write to ", curfile->pfname);
  19:         return;
  20:     }
  21: }

Defined functions

PUT defined in line 7; used 2 times

Defined variables

sccsid defined in line 3; never used
Last modified: 1983-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 842
Valid CSS Valid XHTML 1.0 Strict