Single-Element Functions : List of Functions : stm_r_omd

stm_r_omd
Returns the ID of the module that corresponds to the module occurrence.
Function Type
stm_id
For Elements
 
module occurrence
Syntax
stm_r_omd (id, &status)
Arguments
Input/Output
Status Codes
Example
To determine the module occurrences for each module, use the following statements:
stm_list md_list, om_list;
stm_id om_id;
int status;
.
.
om_list = stm_r_om_of_md (md_list, &status);
for(om_id = (stm_id)
stm_list_first_element (om_list, &status);
status == stm_success;
om_id = (stm_id)
stm_list_next_element (om_list, &status))
printf ("module occurrence %d corresponds to
module %s", om_id, stm_r_md_name (
stm_r_omd (om_id, &status), &status));