SPC  Version 0.9.5
 All Files Functions Groups Pages
ex_sign.spc

This is an example of how to use the sign function.

task main()
{
int x = 1000 - CurrentTick();
char val = sign(x); // return -1, 0, or 1
printf("sign(x) = %d\n", val);
}