File: common.c

package info (click to toggle)
surf 2.0%2Bgit20181009-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 268 kB
  • sloc: ansic: 2,355; makefile: 61; sh: 49
file content (15 lines) | stat: -rw-r--r-- 190 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);
}