ATMI C Function Reference
tuxsetmbaconv()
—Sets the value for environment variable TPMBACONV
in the process environment.
#include <atmi.h>
extern int tperrno;
int
tuxsetmbaconv(int onoff, long flags) /* Set TPMBACONV */
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.
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).