!<arch> Ipbclear 418698031 968 27 100644 105 ` aaa bbb|ccc ddd|eee: fff:lp=here:id=butnothere ggg| hhh|iii:lp=andhere :jjj kkk|lll|:lp:lp=andherealso: Opbclear 418698031 968 27 100644 80 ` aaa bbb|ccc ddd|eee: ggg| hhh|iii:lp=andhere :jjj kkk|lll|:lp:lp=andherealso: Tpbclear.c 418698037 968 27 100644 571 ` /* * pbclear() */ #include <stdio.h> #include "path.h" #include "pdb.h" char *PGN = "Tpbclear"; /* program name */ main() { char *pbfndkey(); /* find key */ int closepdb(); /* close database */ int pgetent(); /* load next entry into buffer */ PDB *mustopenpdb(); /* must open database or die */ PDB *pdbp; /* database stream */ void pbclear(); /* clear buffer */ pdbp = mustopenpdb("Ipbclear", ".", "r"); while (pgetent(pdbp) != EOF) { if(pbfndkey("fff") != NULL) pbclear(); printf("%s\n", pdbp->pbuf); } closepdb(pdbp); exit(0); }