Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

errwin.c

Go to the documentation of this file.
00001 /*************************************************************************
00002 *   FILE: errwin.c
00003 * AUTHOR: CAL
00004 * DATE: 25 April 1993
00005 * PURPOSE:
00006 **************************************************************************/
00007 
00008 #include <string.h>
00009 #include <graphics.h>
00010 #include <stdlib.h>
00011 #include "errwin.h"
00012 #include "msgwin.h"
00013 
00014 
00015 Message ErrorWin (char** txt, bool fatal)
00016 {
00017   char t[80];
00018   if (fatal)
00019     strcpy (t, "Fatal Error");
00020   else
00021     strcpy (t, "Error");
00022 
00023   Message m = MessageWin (RED, WHITE, t, YELLOW, txt, BLACK);
00024   if (fatal)
00025     exit (1);
00026   return m;
00027 }
00028 

Generated on Sun Jul 6 23:07:15 2003 for Scotland Yard by doxygen1.2.15