16 lines
190 B
C
16 lines
190 B
C
|
#include <stdarg.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void
|
||
|
die(const char *errstr, ...)
|
||
|
{
|
||
|
va_list ap;
|
||
|
|
||
|
va_start(ap, errstr);
|
||
|
vfprintf(stderr, errstr, ap);
|
||
|
va_end(ap);
|
||
|
exit(1);
|
||
|
}
|
||
|
|