![]() | Programming Guide | ![]() |
Gets the value of a global integer variable
#include <smglobs.h>int sm_inquire(int property);
property- Specifies the global integer to get with one of the constants described in Table 5-10.
0 The current value of the global variable. If the variable can have a value of true or false,
sm_inquirereturns1for true and0for false.
sm_inquiregets the integer value of the global variable specified byproperty. To modify the value of a global integer variable, use sm_iset.Table 5-10 lists the constants that you can supply as arguments for
property:
if (sm_inquire(I_BSNESS))
sm_ferr_reset(0, "Problem #2!");
else
fprintf(stderr,"Problem #2!\n");