Home | Previous Page | Next Page   Function Descriptions >

mi_library_version( )

The mi_library_version( ) function returns the version and version date of the DataBlade API currently being used.

Syntax

mi_integer mi_library_version(buf, buflen)
   char *buf;
   mi_integer buflen;
buf
is the user-allocated buffer for the version string.
buflen
is the length of buf in bytes.
Valid in Client LIBMI Application? Valid in User-Defined Routine?
Yes Yes

Usage

The mi_library_version( ) function copies the version and version date into the user-defined buffer that buf references.

Server Only

In a C UDR, mi_library_version( ) returns the name of the database server and its version number.

Important:
Beginning with Dynamic Server Version 10.0, use the new mi_server_library_version( ) function to obtain the correct database server version. The mi_library_version( ) function returns a string with the value "IBM Informix Dynamic Server Version 9.50.UC1," which would still be applicable if your software uses string compare functionality.
End of Server Only

Return Values

MI_OK
indicates that the function was successful.
MI_ERROR
indicates that the function was not successful.

Related Topics

See also the descriptions of mi_version_comparison( ) and mi_server_library_version( ).

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]