Tuxedo
0

ATMI C Function Reference

 Previous Next Contents View as PDF  

tuxsetmbaconv(3c)

Name

tuxsetmbaconv()—Sets the value for environment variable TPMBACONV in the process environment.

Synopsis

#include <atmi.h>
extern int tperrno;

int
tuxsetmbaconv(int onoff, long flags) /* Set TPMBACONV */

Description

This function is used for setting or resetting the TPMBACONV environment variable. By default TPMBACONV is not set and automatic conversion functions are used.

The onoff argument is equal to MBAUTOCONVERSION_OFF to unset TPMBACONV and turn off auto-conversions. It is equal to MBAUTOCONVERSION_ON to set TPMBACONV and turn on the typed switch buffers auto-conversion of codeset multi-byte data.

The flags argument is not currently used and should be set to 0.

Return Values

Upon success, tuxsetnombaconv() returns 0; otherwise, it returns a non-zero value on error. (e.g. it returns -1 if the onoff arg is not one of the defined values).

See Also

tuxgetmbaconv(3c), tuxputenv(3c)

 

Back to Top Previous Next
Contact e-docsContact BEAwebmasterprivacy