% errexit.c -- errexit routine % % Bert Bos % 17 Feb '94 Printing error messages [[errexit]] prints an error message on the standard output and stops the program. The first argument is a [[printf]]-style format string, the rest is variable length argument list. <<*>>= #include EXPORT void errexit(char *format,...) { va_list args; va_start(args, format); vfprintf(stdout, format, args); va_end(args); exit(1); }