4.3BSD/usr/contrib/spms/src/lib/libpdb/test/pbrmkey.a

!<arch>
Ipbrmkey        418698165   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:

Opbrmkey        418698166   968   27    100644  91        `

ccc
ddd|:
fff:lp=here:id=butnothere

hhh|iii:lp=andhere

:jjj
kkk|lll|:lp:lp=andherealso:

Tpbrmkey.c      418698172   968   27    100644  611       `
/*
 * pbrmkey()
 */
#include <stdio.h>
#include "path.h"
#include "pdb.h"

char *PGN = "Tpbrmkey";			/* program name */

main()
{
	int closepdb();			/* close database */
	int pgetent();			/* load next entry into buffer */
	PDB *mustopenpdb();		/* must open database or die */
	PDB *pdbp;			/* database stream */
	void pbrmkey();			/* remove key */
	
	pdbp = mustopenpdb("Ipbrmkey", ".", "r");
	while (pgetent(pdbp) != EOF)
		{
		pbrmkey("aaa");
		pbrmkey("bbb");
		pbrmkey("eee");
		pbrmkey("zzz");
		pbrmkey("ggg");
		pbrmkey("k");
		pbrmkey("");
		printf("%s\n", pdbp->pbuf);
		}
	closepdb(pdbp);
	exit(0);
}