raise

Syntax:

    #include <csignal>
    int raise( int signal );

The raise() function sends the specified signal to the program. Some signals:

SignalMeaning
SIGABRT Termination error
SIGFPE Floating pointer error
SIGILL Bad instruction
SIGINT User pressed CTRL-C
SIGSEGV Illegal memory access
SIGTERM Terminate program

The return value is zero upon success, nonzero on failure.

Related Topics: signal