NO FRAMES

CPXgetchannels

int CPXPUBLIC CPXgetchannels(CPXCENVptr env, CPXCHANNELptr * cpxresults_p, CPXCHANNELptr * cpxwarning_p, CPXCHANNELptr * cpxerror_p, CPXCHANNELptr * cpxlog_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetchannels obtains pointers to the four default channels created when CPXopenCPLEX is called. To manipulate the messages for any of these channels, this routine must be called.

Example

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

See also lpex5.c in the ILOG CPLEX User's Manual.

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

cpxresults_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxresults. May be NULL.

cpxwarning_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxwarning. May be NULL.

cpxerror_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxerror. May be NULL.

cpxlog_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxlog. May be NULL.

Returns:

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