Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

error.C

Go to the documentation of this file.
00001 
00002 //
00003 // error.C
00004 //
00005 
00006 #include "stdinc.h"
00007 
00008 void print_message(char* line)
00009 {
00010     if (line)
00011         cerr << line;
00012     else
00013         cerr << " (no text)";
00014     cerr << endl;
00015 }
00016 
00017 void  err_exit(char * line)
00018 {
00019     cerr << "error: ";
00020     print_message(line);
00021     exit(1);
00022 }
00023 
00024 void  warning(char * line)
00025 {
00026     cerr << "warning: ";
00027     print_message(line);
00028 }
00029 

Generated at Sun Feb 24 09:57:00 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001