aboutsummaryrefslogtreecommitdiff
path: root/lib/errors/cerrx.c
blob: b614f4702578df3f2b9eed3384e36657ac263c0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdarg.h>
#include <stdlib.h>

#include "errors.h"

void
cerrx(int code, const char *fmt, ...)
{
	va_list ap;
	va_start(ap, fmt);
	vwarnx(fmt, ap);
	va_end(ap);
	exit(code);
}