API Guide
601355 Rev A API Functions 2-235
Functions
73 /* (upto 4) */
74 printf ( “Enter the number of
criteria expressions ==> “ );
75 numexpr = atoi(gets(input));
76
77 for ( j = 0 ; j < numexpr ; j++ )
78 {
79 /* create an expression for
this */
80 /* criteria */
81 exprh =
VS_Expression_Create();
82
83 if ( exprh ==
(VST_EXPRESSION_HANDLE) NULL )
84 {
85 /* could not allocate memory
for this */
86 /* handle */
87 rc = VSE_FALSE;
88 break;
89 }
90
91 printf ( “Enter relational
option (eq 1, gt 2, ge 3, lt 4, le
5, ne 6) ==> “ );
92 relopt = atoi(gets(input));
93
94 printf ( “Enter the media field
value ==> “ );
95 gets( value);
96
97 printf ( “Enter connective
operation (none 0, and 1, or 2)
==> “ );
98 conop = atoi(gets(input));
99
100 /* set the expression’s
parameters */
101 VS_Expression_SetFields (
exprh,