cfunc.interrupt

Definition/C Functions, Releases: AP 6.1

_CP_interrupt is a C integer containing the same information returned by the Pick/BASIC function 'system(37)'.

Syntax

int _CP_interrupt;

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.

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');

See Also

Command Name Type Description
cfunc.introduction Introductory Overview

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.