|Command||cfunc.interrupt Definition/C Functions
Applicable release versions: AP 6.1
|Category||C Functions (120)|
|Description||is a global C integer which contains the last Pick interrupt that occured.
This value is that same as that returned by the Pick/BASIC function "system(37)".
It is available when linking with the Pick libraries.
/* The following example stops looping when some sort of interrupt occurs (like a break or a message). */ _CP_unix_env(); while (!_CP_interrupt) sleep(1); /* wait for something */ printf("I woke up!!!!n");