blob: fd3ef54dca16d34cccbae35afaf1df1eb7a7559c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Print error message to stderr and exit with status code.
* $Id$
* Copyright (c) 1997 by Tycho Softworks.
* For conditions of distribution and reuse see product license.
*/
#include <other/string.h>
#include <std/files.h>
#include <std/process.h>
#include <stdarg.h>
void fatal(int excode, const char *format, ...)
{
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
exit(excode);
}
|