...
Code Block | ||
---|---|---|
| ||
#include <signal.h> char *foo; void int_handler() { free(foo); _exitExit(0); } int main(void) { foo = malloc(15); signal(SIGINT, int_handler); strcpy(foo, "Hello World."); puts(foo); free(foo); return 0; } |
...
Code Block | ||
---|---|---|
| ||
#include <signal.h> char *foo; void int_handler() { _exitExit(0); } int main(void) { foo = malloc(15); signal(SIGINT, int_handler); strcpy(foo, "Hello World."); puts(foo); free(foo); return 0; } |
...