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


noreturn void panic(char * fmt, ...)
{
	va_list args;
	va_start(args, fmt);
	vdprintf(2, fmt, args);
	va_end(args);
	exit(1);
}