Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>ssignal() implement software signals</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ssignal()                Implement Software Signals

 #include   <signal.h>

 int        (*ssignal(sig,action))();
 int        sig;                         Type of signal
 int        (*action)();                 Action function/Constant

    ssignal() is used to establish an action routine for servicing a
    signal.  Software signals are associated with integers in the range
    from 1 to 15.  'sig' is a number identifying the type of signal for
    which an action is established.  'action' is either the name of a
    user-defined action function or one of the constants SIG_DFL
    (default) or SIG_IGN (ignore) (defined in <signal.h>).  If the action
    function has been established for 'sig', then that action is reset to
    SIG_DFL, and the action function is entered with 'sig'.

    Returns:    The action previously established or SIG_DFL, if the
                signal number is illegal.

See Also: gsignal()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson