UThalt


Routine

void UThalt (const char Errmsg[], ...)

Purpose

Print an error message, stop with error status set

Description

This routine prints an error message to stderr (standard error) and then terminates execution with exit status set to EXIT_FAILURE. An example of the use of this routine is as follows.
  UThalt ("%s: Invalid option", PROGRAM);

Parameters

-> const char Errmsg[]
Character string to be printed. This string can contain optional formatting codes. The arguments corresponding to the formatting codes appear at the end of the argument list. The input string should not normally have a terminating newline character, since this routine supplies a newline.
-> <args...>
Arguments corresponding to the formatting codes. The format string and the variable number of arguments is passed on to the system routine vprintf.

Author / revision

P. Kabal / Revision 1.22 2003/05/09

See Also

UTerror, UTwarn


Main Index libtsp