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

!<arch>
Iprment         418698303   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:

Oprment         418698304   968   27    100644  79        `
aaa
bbb|ccc
ddd|eee:
ggg|
hhh|iii:lp=andhere

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

Tprment.c       418698310   968   27    100644  422       `
/*
 * prment()
 */
#include <stdio.h>
#include "path.h"
#include "pdb.h"

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

main()
{
	int closepdb();			/* close database */
	PDB *mustopenpdb();		/* must open database or die */
	PDB *pdbp;			/* database stream */
	void prment();			/* remove database entry */
	
	pdbp = mustopenpdb("T_INPUT", ".", "rw");
	prment("fff", pdbp);
	prment("fff", pdbp);
	closepdb(pdbp);
	exit(0);
}
Tprment.sh      418870192   968   27    100755  143       `
#!/bin/csh -f
#
# prment()
#
cp Iprment T_INPUT
Tprment
cat T_INPUT |& diff - Oprment
set diffstatus = $status
rm -f T_INPUT
exit($diffstatus)