ttUtilFreeEnv
Description
Frees memory associated with the TimesTen utility library handle.
An application must call ttUtilAllocEnv
before calling any other TimesTen utility library function. In addition, an application should call ttUtilFreeEnv
when it is done using the TimesTen utility library interface.
Required Privilege
None
Syntax
ttUtilFreeEnv (ttUtilHandle handle, char* errBuff,
unsigned int buffLen, unsigned int* errLen)
Parameters
Parameter | Type | Description |
---|---|---|
|
|
Specifies the TimesTen utility library environment handle allocated using |
|
|
This is a user-allocated buffer where error messages are to be returned. The returned error message is a null-terminated string. If the length of the error message exceeds |
|
|
Specifies the size of the buffer |
|
|
This is a pointer to an unsigned integer where the actual length of the error message is returned. If it is |
Return Codes
This utility returns the following codes as defined in ttutillib.h
.
Code | Description |
---|---|
|
Returned upon success. |
|
Returned if an invalid utility library handle is specified. |
Otherwise, it returns a TimesTen-specific error message as defined in tt_errCode.h
and a corresponding error message in the buffer provided by the caller.
Example
This example frees a TimesTen utility library environment handle named utilHandle
.
char errBuff [256]; int rc; ttUtilHandle utilHandle; rc = ttUtilFreeEnv (utilHandle, errBuff, sizeof(errBuff), NULL);