C signal handling: Difference between revisions

Content deleted Content added
Electrum (talk | contribs)
Update man page link
Example usage: added comment
Line 52:
 
int main(void) {
// Set above function as signal handler for the SIGINT signal:
if (signal(SIGINT, catch_function) == SIG_ERR) {
fputs("An error occurred while setting a signal handler.\n", stderr);