pinosaur
/
dmenu.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
moved draw.c to libdraw.a
[dmenu.git]
/
draw
/
eprint.c
1
/* See LICENSE file for copyright and license details. */
2
#include <stdarg.h>
3
#include <stdio.h>
4
#include <stdlib.h>
5
#include "draw.h"
6
7
const char *progname;
8
9
void
10
eprint(const char *fmt, ...) {
11
va_list ap;
12
13
fprintf(stderr, "%s: ", progname);
14
va_start(ap, fmt);
15
vfprintf(stderr, fmt, ap);
16
va_end(ap);
17
exit(EXIT_FAILURE);
18
}