The mi_client_locale() function

The mi_client_locale() function returns the name of the client locale.

Syntax

char *mi_client_locale()
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_client_locale() function returns the client locale, which indicates the locale that the client application uses. The client-locale name gives information about language, territory, code set, and optionally other information about the client computer. For more information about the client locale, see the Informix® GLS User's Guide.

The mi_client_locale() function initializes the DataBlade® API when it is the first DataBlade® API function in a client LIBMI application or user-defined routine.

Return values

An mi_char pointer
A pointer to the name of the client locale.
NULL
The function was not successful.