From 8a34fa50f75f4d6d8af234ac0c4f6d40b988d700 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 10 Jul 2006 18:35:39 +0200 Subject: added new stuff --- util.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 util.c (limited to 'util.c') diff --git a/util.c b/util.c new file mode 100644 index 00000000..3553f5d3 --- /dev/null +++ b/util.c @@ -0,0 +1,18 @@ +/* + * (C)opyright MMVI Anselm R. Garbe + * See LICENSE file for license details. + */ + +#include +#include +#include + +void +error(char *errstr, ...) { + va_list ap; + va_start(ap, errstr); + vfprintf(stderr, errstr, ap); + va_end(ap); + exit(1); +} + -- cgit v1.2.3