Get the name of an error code.
LJM_VOID_RETURN LJM_ErrorToString(
int ErrorCode,
char * ErrorString)
None.
If the constants file that has been loaded does not contain the error code, this returns a null-terminated message saying so. If the constants file could not be opened, this returns a null-terminated string containing the expected file path.
[C/C++] Get the name of error code 1230
char errorName[LJM_MAX_NAME_SIZE]; // LJM_MAX_NAME_SIZE is 256 LJM_ErrorToString(1230, errorName); printf ("%s \n", errorName); // prints "LJME_COULD_NOT_CLAIM_DEVICE"