Prev Next xerror2cpp

Implementation of Cmlib xerror Routine in Cpp

Syntax
xerror2cpp_(messagennerrlevel)

Description
The f2cad version of xerror.f uses this routine for its implementation. This is not completely faithful to the specifications for xerror.

message
The argument message has prototype
     const char *message
It points to the beginning of the error message to be printed.

n
The argument n has prototype
     const int *n
It is the number of characters in the error message.

nerr
The argument nerr has prototype
     const int *nerr
It is a number that identifies the error.

level
The argument level has prototype
     const int *level
It has the following meaning:
-1 a warning, message is printed (but not multiple times in a row)
0 a warning, message is printed
1 a non-fatal error, error number and message are printed
2 a fatal error, error number and message are printed and program aborts

Input File: lib/xerror2cpp.cpp