Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
sig_die.c
Go to the documentation of this file.00001 #include "stdlib.h"
00002 #include "stdio.h"
00003 #include "signal.h"
00004 
00005 #ifndef SIGIOT
00006 #ifdef SIGABRT
00007 #define SIGIOT SIGABRT
00008 #endif
00009 #endif
00010 
00011 #ifdef KR_headers
00012 void sig_die(s, kill) register char *s; int kill;
00013 #else
00014 #include "stdlib.h"
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018  extern void f_exit(void);
00019 
00020 void sig_die(register char *s, int kill)
00021 #endif
00022 {
00023         
00024         if( s != NULL ) fprintf(stderr, "%s\n", s);
00025         exit(1) ;
00026 }
00027 #ifdef __cplusplus
00028 }
00029 #endif