Initializing help system before first use

XPRBdefcbdelvar

XPRBdefcbdelvar


Purpose
Callback for interface update at deletion of variables.
Synopsis
int XPRBpdefcbdelvar(XPRBprob prob, void (XPRB_CC *delinter)(XPRBprob eprob, void *evp, XPRBvar var, void *link), void *vp);
Arguments
prob 
Reference to a problem.
delinter 
User variable interface update function
eprob 
Problem from which the callback is called
evp 
Empty pointer for passing additional information
var 
Reference to a BCL variable
link 
Pointer to an interface object
vp 
Empty pointer for the user to pass additional information
Return value
0 if function executed successfully, 1 otherwise.
Example
Define the variable interface callback function:
XPRBprob prob;
   ...
void mydelinter(XPRBprob prob, void *vp, XPRBvar var, void *adr)
{
  printf("Deleted: %s", XPRBgetvarname(var));
}
   ...
XPRBdefcbdelvar(prob, mydelinter, NULL);
Further information
This function defines a callback function that is called at the deletion of any variable that is used in an interface to an external program, (that means, if the interface pointer of the variable is different from NULL).
Related topics