aewl

diff util.c @ 2:a79188fe4a40

added new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 18:35:39 +0200
parents
children e969f3575b7a
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/util.c	Mon Jul 10 18:35:39 2006 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +/*
     1.5 + * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
     1.6 + * See LICENSE file for license details.
     1.7 + */
     1.8 +
     1.9 +#include <stdarg.h>
    1.10 +#include <stdio.h>
    1.11 +#include <stdlib.h>
    1.12 +
    1.13 +void
    1.14 +error(char *errstr, ...) {
    1.15 +	va_list ap;
    1.16 +	va_start(ap, errstr);
    1.17 +	vfprintf(stderr, errstr, ap);
    1.18 +	va_end(ap);
    1.19 +	exit(1);
    1.20 +}
    1.21 +