The routine CPXaddfpdest() adds a file to the list of message destinations for a channel. The destination list for all CPLEX-defined channels is initially empty.

Return Value

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


  int CPXaddfpdest (CPXCENVptr env,
                    CPXCHANNELptr channel,
                    CPXFILEptr fileptr);


CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXCHANNELptr channel

A pointer to the channel for which destinations are to be added.

CPXFILEptr fileptr

A pointer to the file to be added to the destination list. Before calling this routine, obtain this pointer with a call to CPXfopen().


  CPXaddfpdest (env, mychannel, fileptr);

See Also

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

Previous Page: CPXaddcols Return to Top Next Page: CPXaddfuncdest