dwm-meillo

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