Last active
October 13, 2015 05:18
-
-
Save derekparker/4145545 to your computer and use it in GitHub Desktop.
This is just a test for my blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <signal.h> | |
static void signal_handler(int sig){ | |
puts("oh no!"); | |
exit(EXIT_SUCCESS); | |
} | |
int main(int argc, const char **argv){ | |
signal(SIGINT, signal_handler()); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment