1: /* $Header$ */ 2: 3: /* 4: * Author: Peter J. Nicklin 5: */ 6: 7: /* 8: * resetpdb() resets the current database stream CURPDB to pdbp. Also 9: * resets buffer pointers. 10: */ 11: #include <stdio.h> 12: #include "path.h" 13: #include "pdb.h" 14: 15: extern char *CURPBUF; /* current database buffer */ 16: extern char *FP; /* next non-key field */ 17: extern char *KP; /* next key field */ 18: extern PDB *CURPDB; /* current database stream */ 19: 20: void 21: resetpdb(pdbp) 22: PDB *pdbp; /* database stream */ 23: { 24: CURPDB = pdbp; 25: CURPBUF = FP = KP = pdbp->pbuf; 26: }