SPC
Version 0.9.5
Main Page
Related Pages
Modules
Files
Examples
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);
}
Generated by
1.8.2