Initializing help system before first use

XPRSgetdaysleft

XPRSgetdaysleft


Purpose
Returns the number of days left until an evaluation license expires.
Synopsis
int XPRS_CC XPRSgetdaysleft(int *days);
Argument
days 
Pointer to an integer where the number of days is to be returned.
Example
The following calls XPRSgetdaysleft to print information about the license:
int days;
...
XPRSinit(NULL);
if(XPRSgetdaysleft(&days) == 0) {
  printf("Evaluation license expires in %d days\n", days);
} else {
  printf("Not an evaluation license\n");
}
Further information
This function can only be used with evaluation licenses, and if called when a normal license is in use returns an error code of 32. The expiry information for evaluation licenses is also included in the Optimizer banner message.
Related topics