HP-UX 11.0 - 11i Internationalization Features White Paper
Miscellaneous Modifications
Multibyte Support Extension and Unix98 Support [11i v1]
Chapter 7
87
Under the C shell this is accomplished using
setenv UNIX_STD 98
A cc compiler equal to HP92453-01 A.11.01.20 HP C Compiler or newer is required to get this functionality.
The following list is a summary of the new and modified APIs. For further details, please refer to the
corresponding man pages.
New Interfaces
The following APIs are newly added to libc and do not affect existing code:
btowc
btowc() returns the wide-character representation of a given single-byte character.
fwide
fwide() sets the stream orientation.
fwprintf, swprintf, wprintf
These APIs print formatted wide-character output.
fwscanf, swscanf, wscanf
These APIs process formatted wide-character input.
mbrlen
mbrlen() returns the number of bytes in a wide character. Note that the behavior of this function is affected
by the LC_CTYPE category of the current locale.
mbrtowc
mbrtowc() converts a stream of bytes to a wide-character code. Note that the behavior of this function is
affected by the LC_CTYPE category of the current locale.
mbsinit
mbsinit() determines whether the object pointed to by the first argument, that contains shift state
information, describes an initial conversion state.
mbsrtowcs
mbsrtowcs() converts a character string to a wide-character string. Note that the behavior of this function is
affected by the LC_CTYPE category of the current locale.
towctrans
towctrans() is provided for character transliteration. The current setting of the LC_CTYPE category should be
the same as during the call to wctrans().
vfwprintf, vswprintf, vwprintf
These APIs are provided for printing wide-character formatted output of a stdarg argument. They are
similar to fwprintf(3C) except that instead of being called with a variable number of arguments, they are
called with an argument list as defined by stdarg.h.