summaryrefslogtreecommitdiff
path: root/common.c
blob: 42662ed487605d88503b9e92006dfd2f15080100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

void
die(const char *errstr, ...)
{
	va_list ap;

	va_start(ap, errstr);
	vfprintf(stderr, errstr, ap);
	va_end(ap);
	exit(1);
}