Previous Page: CPXgetdjFirst PageNext Page: CPXgetgenclqcnt

CPXgeterrorstring


Description

This routine returns an error message string corresponding to an error code. Error codes are returned by CPLEX routines when some error occurs.

This routine allows the CPLEX environment parameter to be NULL so that errors caused by one of the CPXopenCPLEX routines can be translated.

Return Value

Returns NULL if the error code does not have a corresponding string. Returns a pointer to the parameter buffer if the string does exist. In this case, buffer will contain the error message string.

Synopsis

char *CPXgeterrorstring (CPXENVptr env,
                         int errcode,
                         char *buffer);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

int errcode
The error code to be translated.

char *buffer
A character string buffer of at least 512 characters to hold the error string.

Example

CPXgeterrorstring (env, status, buffer);

See Also

Example lpex1.c in the CPLEX User's Manual.

Previous Page: CPXgetdjFirst PageNext Page: CPXgetgenclqcnt