Skip navigation.

ATMI C Function Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


tuxgetmbenc(3c)

Name

tuxgetmbenc()—Gets the code-set encoding name for environment variable TPMBENC in the process environment.

Synopsis

#include <atmi.h>
extern int tperrno;

int
tuxgetmbenc(char *enc_name, long flags)

Description

This function is used for getting the codeset encoding name that is contained in the TPMBENC environment variable. This environment variable is automatically used as the default codeset encoding name when an MBSTRING typed buffer is created. The default encoding name can be reset or unset using the tpsetmbenc() function once the new message is available.

The enc_name argument will contain the value of the TPMBENC environment variable upon successful execution of this function. This pointer should be large enough for the encoding name to be copied into.

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

Return Values

Upon success, tuxgetmbenc() returns 0; otherwise, it returns a non-zero value on error.

See Also

tpconvmb(3c), tpgetmbenc(3c), tpsetmbenc(3c), tuxgetenv(3c), tuxsetmbenc(3c)

 

Skip navigation bar  Back to Top Previous Next