My dmenu build
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
364 B

  1. /* See LICENSE file for copyright and license details. */
  2. #include <stdarg.h>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include "util.h"
  7. void
  8. die(const char *fmt, ...) {
  9. va_list ap;
  10. va_start(ap, fmt);
  11. vfprintf(stderr, fmt, ap);
  12. va_end(ap);
  13. if (fmt[0] && fmt[strlen(fmt)-1] == ':') {
  14. fputc(' ', stderr);
  15. perror(NULL);
  16. }
  17. exit(1);
  18. }