shithub: scc

ref: 2f6992e581ba599c2bcd14a04013b335269a542a
dir: /lib/die.c/

View raw version

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

#include "../inc/cc.h"

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