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>gsignal() software signals</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
gsignal()                Software Signals

 #include   <signal.h>

 int        gsignal(sig);
 int        sig;                         Type of signal

    gsignal() implements a software-signaling facility.  Software signals
    are integers ranging from 1 to 15.  gsignal() raises the signal given
    by 'sig' and executes the action routine.

    Returns:    The value returned to gsignal() by the action function.
                The return values for actions assigned to 'sig' are:

                         ACTION              RETURN

                         SIG_IGN                1
                         SIG_DFL                0
                         Illegal value or       0
                         no action specified

                In all cases, gsignal() takes no action other than
                returning a value.

See Also: ssignal()

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