/*------------------------------------------------------------------------------ errors.c - Definition of an error reporting function ------------------------------------------------------------------------------*/ #include #include #include #include "errors.h" void report_error (const char *format, ...) { if (format != NULL) { va_list args; va_start (args, format); vfprintf (stderr, format, args); va_end (args); fprintf (stderr, "\n"); } exit (255); }