Query Functions : Examples of Query Functions : Example 3

Example 3

To return the name of all events in the database whose names begin with the string EV, use the following statements:

stm_id eve;
stm_list ev_list;
int status;
.
.
.
ev_list = stm_r_ev_name_of_ev ("EV*", &status);
for (eve = (stm_id)
stm_list_first_element (ev_list, &status);
status == stm_success;
eve = (stm_id) stm_list_next_element (ev_list,
&status))
printf ("\n %s", stm_r_ev_name (eve, &status));