Main Page | Class List | File List | Class Members | File Members

error.c

Go to the documentation of this file.
00001 #include "standard.h"
00002 #include "error.h"
00003 
00004 void error(char *calling_fn, char *message)
00005 /*
00006  * Prints out a fatal error message and exits.
00007  */
00008 {
00009   fprintf(stderr, " sim: Fatal Error\n");
00010   fprintf(stderr, "func: %s()\n", calling_fn);
00011   fprintf(stderr, "mesg: %s\n", message);
00012   exit(1);
00013 }
00014 
00015 
00016 void warn(char *func, char *msg)
00017 {
00018   fprintf(stderr, "Warning: %s() - %s \n",func,msg);
00019 }
00020 

Generated on Sun Jul 16 16:27:45 2006 by  doxygen 1.3.9.1