The LMX_GetVersion function retrieves the major and minor version number of the LM-X SDK.

Prototype

int LMX_GetVersion();

Return values

This function returns an integer in the format (major)(minor)(minor). For example, a return value of 121 represents version number 1.21.

Example

The following code prints the LM-X version that is currently in use, and does not require initializing LM-X handle.

#include <lmx.h>
#include <stdio.h>

int main() 
{
  printf("Version: %d", LMX_GetVersion());
  return 0;
}