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.

15 lines
190 B

  1. #include <stdarg.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. void
  5. die(const char *errstr, ...)
  6. {
  7. va_list ap;
  8. va_start(ap, errstr);
  9. vfprintf(stderr, errstr, ap);
  10. va_end(ap);
  11. exit(1);
  12. }