NAME
nst_diagnostics -- mother routine for diagnostics routines
PROTOTYPE
void nst_diagnostics( int i, const char *pcFmt, va_list vArg)
ARGUMENTS
- int i
- diagnostics type: 0 = message, 1 = warning, 2 = error message
- const char *pcFmt
- printf-like format
- va_list vArg
- remaining arguments of a vararg list
DESCRIPTION:
Issues a formatted error/warning message.
i=0 gives a message, i=1 a warning, i=2 an error message.
Formatting is as for the printf()-function: pcFmt is a format string
that determines the use of subsequent arguments.
However, a few additional format specifiers are defined:
%L for i=0: is equivalent to "Line #X ",
for i=1: is equivalent to "Warning in line #X "
for i=2: is equivalent to "Error in line #X "
where X is replaced by the value of ERROR_LINE.
%F is equivalent to "of file $", where
$ will be replaced by value of ERROR_FILE
%S is equivalent to "%L%F(in %s)",
and consumes one string argument for %s
FILE
/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../nstsrc/nst_dbug.c