The ifx_gl_mb_loc_max() function

The ifx_gl_mb_loc_max() function returns the maximum number of bytes in the characters of the current locale.

Syntax

#include <ifxgls.h>
...
int ifx_gl_mb_loc_max(void);;
Valid in client application Valid in DataBlade® UDR
Yes Yes

Usage

The ifx_gl_mb_loc_max() function is useful when you need to allocate memory for a multibyte-character string. It returns the maximum number of bytes that any multibyte character can occupy. A multibyte code set can have characters of one, two, three, or four bytes.

Return values

>=0
The maximum number of bytes in the current locale.
-1
The function was not successful.

Errors

None