prepare switch to libsl

This commit is contained in:
Markus Teich
2015-04-05 15:48:47 +02:00
parent c6c12c4f92
commit b37ef38335
6 changed files with 512 additions and 3 deletions

17
util.c Normal file
View File

@ -0,0 +1,17 @@
/* See LICENSE file for copyright and license details. */
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "util.h"
void
die(const char *errstr, ...) {
va_list ap;
va_start(ap, errstr);
vfprintf(stderr, errstr, ap);
va_end(ap);
exit(EXIT_FAILURE);
}