VLSucgGetErrorLength

Syntax

int VLSucgGetErrorLength ( VLSucg_HANDLE  iHandle, int msgNum, int *errLenP);
Argument Description

iHandle

Instance handle for this library.

msgNum

The number of the message whose length is to be queried starts from 0.

errLenP

The length of messages identified by msgNum.

Description

Returns the length of error message identified by msgNum and recorded in the handle.

The length returned by VLSucgGetErrorLength includes the space required for NULL termination.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLSucg_BAD_HANDLE

If the handle passed is not a valid handle.

VLSucg_FAIL

On failure.

For the complete list of the error codes, refer to Upgrade License Error Codes.