dwm-meillo

annotate 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
rev   line source
garbeam@2 1 /*
garbeam@2 2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
garbeam@2 3 * See LICENSE file for license details.
garbeam@2 4 */
garbeam@2 5
garbeam@2 6 #include <stdarg.h>
garbeam@2 7 #include <stdio.h>
garbeam@2 8 #include <stdlib.h>
garbeam@2 9
garbeam@2 10 void
garbeam@2 11 error(char *errstr, ...) {
garbeam@2 12 va_list ap;
garbeam@2 13 va_start(ap, errstr);
garbeam@2 14 vfprintf(stderr, errstr, ap);
garbeam@2 15 va_end(ap);
garbeam@2 16 exit(1);
garbeam@2 17 }
garbeam@2 18