procedure ENTINF_GetAttribute (
   entInf: ENTINF,
   attribute: ATTRTYP,
   prefixTable: PrefixTable
   ): ATTR

Informative summary of behavior: The ENTINF_GetAttribute procedure scans an ENTINF structure and returns the first ATTR structure for the requested attribute. The attribute parameter is based on dc.prefixTable, while the attributes within entInf are based on the prefixTable parameter.

 attrType: ATTRTYP
 oid : OID
 oid := OidFromAttid(dc.prefixTable, attribute)
 attrType := MakeAttid(prefixTable, oid)
 for each i in [0 .. entInf.AttrBlock.attrCount-1] do
   if (entInf.AttrBlock.pAttr[i].attrTyp = attrType) then           
     return entInf.AttrBlock.pAttr[i]
 return null