1: /* $Header$ */
   2: 
   3: /*
   4:  * Author: Peter J. Nicklin
   5:  */
   6: 
   7: /*
   8:  * prment() removes database entries corresponding to key.
   9:  */
  10: #include <stdio.h>
  11: #include "null.h"
  12: #include "path.h"
  13: #include "pdb.h"
  14: 
  15: void
  16: prment(key, pdbp)
  17:     char *key;          /* key string */
  18:     PDB *pdbp;          /* database stream */
  19: {
  20:     char *pbfndkey();       /* find key */
  21:     int pgetent();          /* load next entry into buffer */
  22:     int pputent();          /* write buffer to database */
  23:     void rewindpdb();       /* rewind database */
  24: 
  25:     rewindpdb(pdbp);
  26:     while (pgetent(pdbp) != EOF)
  27:         {
  28:         if (pbfndkey(key) != NULL)
  29:             continue;
  30:         pputent(pdbp);
  31:         }
  32: }

Defined functions

prment defined in line 15; never used
Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 559
Valid CSS Valid XHTML 1.0 Strict