Utility Functions : List of Utility Functions : stm_list_contains_ptr_element

stm_list_contains_ptr_element
Determines whether the specified item appears in the given list.
Function Type
int
Syntax
stm_list_contains_ptr_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_list_ptr_elm st_name;
int status;
.
.
if (stm_list_contains_ptr_element (elmnt_list,
(stm_list_elm)st_name, &status))
.
.
If A1 appears in elmnt_list, the statements following the if statement are executed. Note that the name of A1 (and not its ID) is passed to the function.