dmenu for lunch applications in dwm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
329 B

  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. const char *progname;
  7. void
  8. eprint(const char *fmt, ...) {
  9. va_list ap;
  10. fprintf(stderr, "%s: ", progname);
  11. va_start(ap, fmt);
  12. vfprintf(stderr, fmt, ap);
  13. va_end(ap);
  14. exit(EXIT_FAILURE);
  15. }