summaryrefslogtreecommitdiffstats
path: root/regress/misc/sk-dummy/fatal.c
blob: 7cdc74b97b57ffe92e8df8c9f7a9871ca4c94be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* public domain */

#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>

void fatal(char *fmt, ...);

void
fatal(char *fmt, ...)
{
	va_list ap;

	va_start(ap, fmt);
	vfprintf(stderr, fmt, ap);
	va_end(ap);
	fputc('\n', stderr);
	_exit(1);
}