shithub: scc

ref: 0289c983456b286aea8fcf95c4a2e9950964317f
dir: /lib/die.c/

View raw version

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

#include <cc.h>

void
die(const char *fmt, ...)
{
	va_list va;
	va_start(va, fmt);
	fprintf(stderr, fmt, va);
	va_end(va);
	exit(EXIT_FAILURE);
}