![]() |
|
int CPXaddfuncdest (CPXCENVptr env, CPXCHANNELptr channel, void *handle, void (CPXPUBLIC *msgfunction) (void *, const char *)); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to the channel to which the function destination is to be added.
A pointer to the function to be called when a message is sent to a channel.
void msgfunction (void *handle, char *msg_string) { FILE *fp; fp = (FILE *)handle; fprintf (fp, "%s", msg_string); } status = CPXaddfuncdest (env, mychannel, fileptr, msgfunction); |