sbase/util/eprintf.c

17 lines
293 B
C
Raw Normal View History

2011-05-23 01:36:34 +00:00
/* See LICENSE file for copyright and license details. */
#include <stdarg.h>
#include <stdlib.h>
2011-05-24 12:00:30 +00:00
#include "../util.h"
2011-05-23 01:36:34 +00:00
2011-06-18 05:41:28 +00:00
extern void venprintf(int, const char *, va_list);
2011-05-23 01:36:34 +00:00
void
eprintf(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
2011-06-18 05:41:28 +00:00
venprintf(EXIT_FAILURE, fmt, ap);
2011-05-23 01:36:34 +00:00
va_end(ap);
}