aboutsummaryrefslogtreecommitdiff
path: root/lib/errors/errx.c
blob: 1fd55af7e1cbff0007afee423e920f19970fd814 (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
errx(const char *fmt, ...)
{
	va_list ap;
	va_start(ap, fmt);
	vwarnx(fmt, ap);
	va_end(ap);
	exit(EXIT_FAILURE);
}