Products Support Documentation Download
Miscellaneous Static Functions
Collaboration diagram for Miscellaneous Static Functions:


RDM_RETCODE rdm_rdmGetVersion (const RDM_TCHAR_T *fmt, RDM_TCHAR_T *buf, size_t bytesIn)
 Return RDM Db Engine version information. More...

Detailed Description

Miscelaneous functions API. The functions here are located in RDM DB Engine Library. Linker option:


Function Documentation

◆ rdm_rdmGetVersion()

RDM_RETCODE rdm_rdmGetVersion ( const RDM_TCHAR_T fmt,
size_t  bytesIn 

#include <rdmrdmapi.h>

Return RDM Db Engine version information.

This function fills a buffer with a string describing the version of the RDM library according to a format string. The format string consists of plaintext (copied to the string buffer) and format specifiers introduced by a percent ("%") character. See list below.

If a NULL is passed in for fmt then the default format string will be used. The default format string is the full version string "%V". This corresponds to "%n %v Build %b"

rdm_rdmGetVersion() Type Field Characters

  • n Product Name
  • v Version number
  • b Build number
  • V Full version string
  • c Copyright date
  • w Owner name
  • r Rights text
  • C Full Copyright string
  • %% Literal percent character
Return values
sOKAYNormal, successful return.
Locking Requirements
[in]fmtA string that specifies how the version information is to be formatted.
[out]bufA string buffer to receive the formatted version string.
[in]bytesInThe length of buf in bytes