![]() |
This routine allows the CPLEX environment parameter to be NULL so that errors caused by the CPXopenCPLEX routine can be translated.
|
char *CPXgeterrorstring (CPXCENVptr env, int errcode, char *buffer_str); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
The error code to be translated.
A character string buffer of at least 510 characters to hold the error string.
char *errstr; errstr = CPXgeterrorstring (env, errcode, buffer); if ( errstr != NULL ) { printf ("%s\n", buffer); } else { printf ("CPLEX Error %5d: Unknown error code.\n", errcode); } |