aboutsummaryrefslogtreecommitdiff
path: root/die.c
blob: 0635b31aabda5e665c6c67e94f648e3d9e964eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

#include "die.h"

void die(const char* fmt, ...) {
	va_list args;
	va_start(args, fmt);
	vfprintf(stderr, fmt, args);
	fflush(stderr);
	va_end(args);

	exit(EXIT_FAILURE);
}