Mercurial > dwm-meillo
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:f10194d4b76d | 2:a79188fe4a40 |
---|---|
1 /* | |
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> | |
3 * See LICENSE file for license details. | |
4 */ | |
5 | |
6 #include <stdarg.h> | |
7 #include <stdio.h> | |
8 #include <stdlib.h> | |
9 | |
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 } | |
18 |