Returns the Monitor Client Library version number.
SMC_RETURN_CODE smc_get_version_string (SMC_CHARPP versionBuffer)
return value that contains the version string.
Return value |
Indicates |
|---|---|
SMC_RET_SUCCESS |
Function succeeded. |
SMC_RET_FAILURE |
Function failed. |
SMC_CHARP versionBufferHandle;
if (smc_get_version_string(&versionBufferHandle)
!= SMC_RET_SUCCESS)
{
printf("smc_get_version_string failed\n");
/* do some cleanup */
}
printf("%s\n",versionBufferHandle);
free(versionBufferHandle);
The Monitor Client Library allocates the memory for this string. The calling application must deallocate this memory using free().
This function does not require a connection.
| Copyright © 2005. Sybase Inc. All rights reserved. |
|
|