stm_r_xx_attr_nameReturns the names of attributes associated with the specified element. Attributes are associated with elements via element forms.
information-
flow
user-defined
type
Input/Output If no attributes exist for the specified element,status
receives the valuestm_attribute_name_not_found
.To perform operations on the attributes of the stateWAIT
, retrieve a list of its attribute names using the following statements:stm_id st_id;
stm_attr_name attrib;
stm_list attr_list;
int status;
.
.
st_id = stm_r_st ("WAIT", &status);
attr_list = stm_r_st_attr_name (st_id, &status);
for (attrib = (stm_attr_name)
stm_list_first_element (attr_list, &status);
status == stm_success;
attrib = (stm_attr_name)
stm_list_next_element (attr_list, &status))
.
.
.attr_list
contains a list of attribute names forWAIT
. In thefor
loop, perform the operations on each item in the list of attributes (such as retrieving and printing the corresponding values).