VWriteError
Name
VWriteError - writes the error message to 3DVIENWIX.ERR file.
Synopsis
VWriteError(process, function, msg)
char *process, *function, *msg;
Description
VWriteError writes the error message to 3DVIENWIX.ERR file. The process
name, function name, the date the error occurred and the error message is
written to 3DVIENWIX.ERR file. If the 3DVIENWIX.ERR file is not writable,
VWriteError writes the message to the standard error stream and exits from
the current process.
Return Value
0 - work successfully.
4 - file open error.
7 - environment variable does not exist.
Parameters
process - specifies the name of the process that produced the error.
function - specifies the name of function that produced the error.
msg - specifies the error message to be written to 3DVIEWNIX.ERR file.
Side Effects
None.
Entry Conditions
The environment variable VIEWNIX_ENV must be set to the 3DVIEWNIX system
directory.
Related Functions
VDecodeError.