-

Changes

Jump to: navigation, search

Functions HI-TECH C SIGNAL

1,048 bytes added, 23:38, 31 July 2017
Created page with "<strong>SIGNAL</strong> ==SYNOPSIS== #include <signal.h> void (* signal)(int sig, void (*func)()); ==DESCRIPTION== <strong>Signal</strong>() provides a mechanism for catc..."
<strong>SIGNAL</strong>
==SYNOPSIS==

#include <signal.h>
void (* signal)(int sig, void (*func)());


==DESCRIPTION==
<strong>Signal</strong>() provides a mechanism for catching control-C's
(ctrl-BREAK for MS-DOS) typed on the console during
I/O. Under CP/M the console is polled whenever an I/O
call is performed, while for MS-DOS the polling depends
on the setting of the BREAK command. If a control-C is
detected certain action will be performed. The default
action is to exit summarily; this may be modified with
<strong>signal</strong>(). The sig argument to signal may at the present
time be only SIGINT, signifying an interrupt condition.
The func argument may be one of SIG_DFL, representing
the default action, SIG_IGN, to ignore control-C's completely, or the address of a function which will be
called with one argument, the number of the signal
caught, when a control-C is seen. As the only signal
supported is SIGINT, this will always be the value of
the argument to the called function.

==SEE ALSO==

exit

Navigation menu