cfunc.interrupt Definition/C Functions

cfunc.interrupt

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;
Options
Example
/* 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");
Purpose
Related cfunc.introduction