CPXXgetstatstring and CPXgetstatstring
The routine CPXXgetstatstring/CPXgetstatstring
places a string in a
buffer.
CPXCHARptr CPXXgetstatstring( CPXCENVptr env, int statind, char * buffer_str )
CPXCHARptr CPXgetstatstring( CPXCENVptr env, int statind, char * buffer_str )
Description
The routine CPXXgetstatstring/CPXgetstatstring
places a string in a
buffer. The string corresponds to the value of statind
as returned by the routine
CPXXgetstat/CPXgetstat
. The buffer to hold
the string must be at least
CPXMESSAGEBUFSIZE
bytes long to hold
the status string corresponding to the value of statind
.
In case of error, the error string returned is encoded according to the
value specified by the parameter known as the
API string encoding switch
(CPXPARAM_Read_APIEncoding
).
Example
statind = CPXgetstat (env, lp);
p = CPXgetstatstring (env, statind, buffer);
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX
. - statind
- An integer specifying the status value to return.
- buffer_str
-
A pointer to a buffer to hold the string corresponding to the value of
statind.
Return
The routine returns a pointer to a buffer if thestatind
value corresponds to a valid string. Otherwise, it returns NULL.