2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
15 bad_malloc(unsigned int size)
17 eprint("fatal: could not malloc() %u bytes\n", size);
23 emallocz(unsigned int size)
25 void *res = calloc(1, size);
33 eprint(const char *errstr, ...) {
37 vfprintf(stderr, errstr, ap);
45 char **argv = (char **)arg->argv;
52 close(ConnectionNumber(dpy));
54 execvp(argv[0], argv);
55 fprintf(stderr, "dwm: execvp %s", argv[0]);