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

!<arch>
Ipbfndstring    418698072   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:

Opbfndstring    418698072   968   27    100644  40        `
here:id=butnothere
andhere
andherealso:
Tpbfndstring.c  418698079   968   27    100644  571       `
/*
 * pbfndstring()
 */
#include <stdio.h>
#include "path.h"
#include "pdb.h"

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

main()
{
	char *bp;			/* buffer pointer */
	char *pbfndstring();		/* find string field */
	int closepdb();			/* close database */
	int pgetent();			/* load next entry into buffer */
	PDB *mustopenpdb();		/* must open database or die */
	PDB *pdbp;			/* database stream */
	
	pdbp = mustopenpdb("Ipbfndstring", ".", "r");
	while (pgetent(pdbp) != EOF)
		if ((bp = pbfndstring("lp")) != NULL)
			printf("%s\n", bp);
	closepdb(pdbp);
	exit(0);
}