Programming Guide |
Changes the value of a global integer variable
#include <smglobs.h>int sm_iset (int property, int newval);
property
- Specifies the global variable to change with one of these constants:
newval
- The new value to assign to
property
as shown in the previous table.
- 0 Success: The previous value of
property
.
Panther has a number of global parameters and settings. Use
sm_iset
to modify the current value of global integers. To get the value of a global integer, use sm_inquire.If you want a process to run in the background, you can set both
I_NODISP
andI_NOMSG
to1
.
void insert_mode(int on_off);
{
sm_iset(I_INSMODE, on_off);
}
sm_inquire, sm_pinquire, sm_pset