home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
328_01
/
werror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
345b
|
29 lines
/*! werror
* fatal error handler
*/
#include "wscreen.h"
#include "wsys.h"
#include <stdio.h>
void werror ( int errcode, char *msg )
{
#ifndef TEXTONLY
/* if in graphics mode, need to restore CRT
*/
wtextmode ();
#endif
perror ( msg );
exit (errcode);
return; /* werror */
}