Utility Functions : List of Utility Functions : stm_list_contains_id_element

stm_list_contains_id_element
Determines whether the specified ID appears in the given list.
Function Type
int
Syntax
stm_list_contains_id_element (list, item, &status)
Arguments
Input/Output
Status Codes
Example
To check a list of Rational Statemate elements for the presence of activity A1 and assign the elements to the list elmnt_list, use the following statement:

stm_list elmnt_list;
stm_id st_id;
int status;
.
.
if (stm_list_contains_id_element (elmnt_list,
(stm_list_id_elm)st_id, &status))
.
.
If A1 appears in elmnt_list, the statements following the if statement are executed. Note that the ID of A1 (and not its name) is passed to the function.