discvr.c 171 Bytes
Newer Older
Kristin Wright's avatar
Kristin Wright committed
1 2 3 4 5 6 7 8 9 10

#include <stdarg.h>

void
error_exit(char *fmt, ...)
{
        va_list ap;
	char *msg;

	va_start(ap, fmt);
11
	printf();
Kristin Wright's avatar
Kristin Wright committed
12 13 14
	perror("Unable to get time-of-day.");
	exit(1);
}