XPRSgetlicerrmsg
XPRSgetlicerrmsg |
Purpose
Retrieves an error message describing the last licensing error, if any occurred.
Synopsis
int XPRS_CC XPRSgetlicerrmsg(char *buffer, int length);
Arguments
buffer
|
Buffer long enough to hold the error message (including a null terminator).
|
length
|
Length of the buffer.
|
Example
char message[512]; ... if(XPRSinit(NULL)) { XPRSgetlicerrmsg(message,512); printf("%s\n", message); }
Further information
1. The error message includes an error code, which in case the user wishes to use it is also returned by the function. If there was no licensing error the function returns 0.
2. It's recommended that you pass a buffer of at least 2048 bytes as licensing errors can be qute long. If the error message is too large to fit in the buffer, the first
length-1 characters will be returned.
Related topics