0004-abort.c (241B)
1 #include <assert.h> 2 #include <stdio.h> 3 #include <signal.h> 4 #include <stdlib.h> 5 6 /* 7 output: 8 aborting 9 end: 10 */ 11 12 int 13 main(void) 14 { 15 printf("aborting\n"); 16 assert(signal(SIGABRT, SIG_IGN) != SIG_ERR); 17 abort(); 18 printf("borning\n"); 19 20 return 0; 21 }