!<arch> Ipbfndkey 418698058 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: Opbfndkey 418698058 968 27 100644 26 ` fff:lp=here:id=butnothere Tpbfndkey.c 418698066 968 27 100644 515 ` /* * pbfndkey() */ #include <stdio.h> #include "path.h" #include "pdb.h" char *PGN = "Tpbfndkey"; /* 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 */ pdbp = mustopenpdb("Ipbfndkey", ".", "r"); while (pgetent(pdbp) != EOF) if (pbfndkey("fff") != NULL) printf("%s\n", pdbp->pbuf); closepdb(pdbp); exit(0); }