/* * $Id: //devel/tools/main/backstealth/dieW.cpp#1 $ * * written by: Stephen J. Friedl * Software Consultant * Tustin, California USA * steve@unixwiz.net * * This helper function takes a printf-style argument list, formats * the parameters to the standard error stream, appends a newline, * and exits with error status. * * UNICODE VERSION */ #include "bscommon.h" #include #include #include "bsdefs.h" extern "C" void __cdecl dieW(const wchar_t *format, ...) { va_list args; va_start(args, format); (void) vfwprintf(stderr, format, args); va_end(args); (void) putwc('\n', stderr ); exit(EXIT_FAILURE); }