Introduction <csignal>.
The "CPP Signal Handler" clears the generated signals. It provides an alternative solution to the problem or terminates the entire program.
Signals | Signal | Description |
|---|---|
| SIGFPE | Error in mathematical calculations |
| SIGABRT | Terminates the program abnormally |
| SIGINT | Occurrence of interaction signal |
| SIGILL | Implies instruction given is illegal |
| SIGTERM | Request terminated |
| SIGSEGV | The storage accessed is invalid |
Syntax
Example
Description sig to the current executing program. If none of the function handlers defines signal to handle the raised signal, the function never throws exceptions.
Syntax
Example
Key Points
Programming
Tips