XPRBgetnextctr
| XPRBgetnextctr | 
  Purpose
 
  Synopsis
 
XPRBctr XPRBgetnextctr(XPRBprob prob, XPRBctr ref);
 
  Arguments
 
| 
     prob 
     | 
     Reference to a problem.
     | 
| 
     ref 
     | 
     Reference constraint or NULL.
     | 
  Return value
 
 The next constraint in the enumeration order, or
 NULL .
  Example
 
XPRBprob prob;
XPRBctr ctr;
   ...
ctr = NULL;
while ((ctr = XPRBgetnextctr(prob, ctr)) != NULL) {
  XPRBprintctr(ctr);
}
 This prints all constraints defined in the problem.
 
  Further information
 
  This function can be used to enumerate the constraints of a problem. The second parameter serves to keep track of the current location in the enumeration; if this parameter is
 NULL, the first constraint is returned, otherwise the constraint that follows it is returned. This function returns
 NULL if
 ref is the last constraint (or if there are no constraints to enumerate).
 
  Related topics
 
 
