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

errwin.c File Reference

#include <string.h>
#include <graphics.h>
#include <stdlib.h>
#include "errwin.h"
#include "msgwin.h"

Go to the source code of this file.


Message ErrorWin (char **txt, bool fatal)

Function Documentation

Message ErrorWin char **    txt,
bool    fatal

Definition at line 15 of file errwin.c.

References MessageWin().

00016 {
00017   char t[80];
00018   if (fatal)
00019     strcpy (t, "Fatal Error");
00020   else
00021     strcpy (t, "Error");
00023   Message m = MessageWin (RED, WHITE, t, YELLOW, txt, BLACK);
00024   if (fatal)
00025     exit (1);
00026   return m;
00027 }

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