HP-UX 11i March 2002 Release Notes

New and Changed Internationalization Features
Multibyte Support Extension and Unix98 Support
Chapter 15
257
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>.
wcrtomb()
wcrtomb() converts a wide-character to a multibyte character. It determines the
number of bytes needed to represent the character corresponding to the wide-character
code whose value is specified by the second argument.
wcsrtombs()
wcsrtombs() converts a wide-character string to a character string. Note that the
behavior of this function is affected by the LC_CTYPE category of the current locale.
wcsstr()
wcsstr() finds a substring in a wide-character string. Note that the behavior of this
function is affected by the LC_CTYPE category of the current locale.
wctob()
wctob() converts wide-character to single-byte.
wctrans
wctrans() defines character mapping in the current locale. Note that the values
returned by wctrans() are valid until a call to setlocale() that modifies the category
LC_CTYPE.
wmemchr(), wmemcmp(), wmemcpy(), wmemmove(), wmemset()
These APIs operate with wide-character in memory areas:
wmemchr() finds a wide-character in a memory array.
wmemcmp() compares wide-characters in memory.
wmemcpy() copies wide-chracter in memory.
wmemmove() copies wide-characters in memory with overlapping areas.
wmemset() sets wide-characters in memory.
Modified interfaces
The following APIs may have a change in behavior or a parameter type change that
could affect existing HP-UX code when the Unix98 support is selected:
fprintf(), printf(), snprintf(), sprintf(), fscanf(), scanf(), sscanf()
printf (3S), scanf (3S) and related functions support the new qualifier l (the letter) to
select wide character conversion in a given format string and set errno to [EILSEQ]ifthe
data obtained from the input stream does not form a valid wide character.