IDATLS   

Equivalent PK functions: PK_ENTITY_ask_attribs

IDATLS ( entity, type, atlist, ifail )
======================================

  Enquire the attributes of a given type attached to an entity.

    Can be called from the GO.

Receives:
  KI_tag_entity            *entity         --- entity in which to look
  KI_tag_attrib_def        *type           --- type of attribute to look for

Returns:
 <KI_tag_list_attribute>   *atlist         --- list of attributes
  KI_cod_error             *ifail          --- error code

Specific errors:
  KI_wrong_entity           'entity' cannot own attributes of 'type'

Description:
   Returns a list of all the attributes of 'type' attached to 'entity', or the
  null tag if there are no such attributes.  If the given 'entity' is not
  permitted to own attributes of the given 'type', KI_wrong_entity is returned
  in 'ifail'.