The mi_server_library_version() function

The mi_server_library_version() function returns the name of the database server with its major and minor version numbers.

Syntax

mi_integer mi_server_library_version(buf, buflen, major, minor)
   mi_char1 *buf;
   mi_integer buflen;
   mi_integer *major;
   mi_integer *minor;
buf
The user-allocated buffer for the version string.
buflen
The length of buf in bytes.
major
The address of the integer where the major version is returned.
minor
The address of the integer where the minor version is returned.
Valid in client LIBMI application? Valid in user-defined routine?
No Yes

Usage

The mi_server_library_version() function copies the database server name with its major and minor version numbers into the user-defined buffer that buf references. For example, for "HCL Informix® Version 11.50.UC1," the major version is 11 and the minor version is 50.

Return values

MI_OK
The function was successful.
MI_ERROR
The function was not successful.