Previous Page: CPXgetcallbackinfo First PageNext Page: CPXgetclqcnt

CPXgetchannels


Description

This routine obtains the pointers to the four default channels that are created when one of the CPXopenCPLEX routines is called. In order to manipulate the messages for any of these channels, CPXgetchannels() must be called.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs.

Synopsis

int CPXgetchannels (CPXENVptr env,
                    CPXCHANNELptr *cpxresults_p,
                    CPXCHANNELptr *cpxwarning_p,
                    CPXCHANNELptr *cpxerror_p,
                    CPXCHANNELptr *cpxlog_p);

Arguments


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

CPXCHANNELptr *cpxresults_p
A pointer to a variable of type CPXCHANNELptr that will hold the address of the channel corresponding to cpxresults. This parameter may be NULL.

CPXCHANNELptr *cpxwarning_p
A pointer to a variable of type CPXCHANNELptr that will hold the address of the channel corresponding to cpxwarning. This parameter may be NULL.

CPXCHANNELptr *cpxerror_p
A pointer to a variable of type CPXCHANNELptr that will hold the address of the channel corresponding to cpxerror. This parameter may be NULL.

CPXCHANNELptr *cpxlog_p
A pointer to a variable of type CPXCHANNELptr that will hold the address of the channel corresponding to cpxlog. This parameter may be NULL.

Example

status = CPXgetchannels (env, &cpxresults, &cpxwarning,
                         &cpxerror, &cpxlog);

See Also

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

Previous Page: CPXgetcallbackinfo First PageNext Page: CPXgetclqcnt