X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=util.c;fp=util.c;h=51acd1aed516d3cdeff714c31b9cd8f455c6c50e;hp=0000000000000000000000000000000000000000;hb=f21d46ea7def76221c4173f644eb2188ae9edbb1;hpb=c0ba635c50dc53f06e4fc96392415b3d19b25826 diff --git a/util.c b/util.c new file mode 100644 index 0000000..51acd1a --- /dev/null +++ b/util.c @@ -0,0 +1,17 @@ +/* See LICENSE file for copyright and license details. */ +#include +#include +#include + +#include "util.h" + +void +die(const char *errstr, ...) { + va_list ap; + + va_start(ap, errstr); + vfprintf(stderr, errstr, ap); + va_end(ap); + exit(EXIT_FAILURE); +} +