aboutsummaryrefslogtreecommitdiff
path: root/src/err.h
blob: 1dccbf9b943c0e1e1125985f6875b75652a89c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _ERR_H_
#define _ERR_H_

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

static inline void error(const char *format, ...)
{
	va_list args;
	va_start(args, format);
	vfprintf(stderr, format, args);
	va_end(args);
	exit(1);
}

#endif