4
* Error printing functions.
12
* error: interface to the rest of the world
13
* globals: Program_Name
14
* stdio: fprintf(), fputc(), stderr
15
* stdlib: EXIT_FAILURE
16
* stdarg: va_list, va_start(), va_end(), vfprintf()
30
* Print a warning message to stderr, but don't quit
32
void error(char *fmt, ...)
37
fprintf (stderr, "%s: ", Global.program_name);
38
vfprintf(stderr, fmt, args);
50
* Print a message to stderr and exit(EXIT_FAILURE)
52
void fatal_error(char *fmt, ...)
57
fprintf (stderr, "%s: FATAL ERROR: ", Global.program_name);
58
vfprintf(stderr, fmt, args);