cfunc.interrupt Definition/C Functions


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.
Syntax int _CP_interrupt;
/* The following example stops looping when some sort of interrupt occurs (like 
a break or a message). */

while (!_CP_interrupt)    sleep(1); /* wait for something */
printf("I woke up!!!!n");
Related cfunc.introduction