Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbGetProductVersion

Retrieve the product version.

Declaration

CTDBRET ctdbGetProductVersion(CTHANDLE Handle, ppTEXT prodVersion, COUNT bufLen);

Description

ctdbGetProductVersion() retrieves the product version. The Handle parameter is not used so it can be NULL.

In V10.3 and later, the FairCom DB Server's "mini" version number, build date, and base build date (if any) are returned. These values allow a client to display the same full server build date that the FairCom DB Server displays.

Parameters:

  • Handle [IN] - Session handle (can be NULL).
  • prodVersion [OUT] - Product version.
  • bufLen [IN] - Buffer Length.

Returns

cctdbGetProductVersion() returns CTDBRET_OK on success.

Example

NINT Retcode;

TEXT vers_buf[40];

Retcode = ctdbGetProductVersion(NULL,&vers_buf,sizeof(vers_buf));

TOCIndex