Manual page for wcsxfrm(3I)
wcsxfrm, wsxfrm - wide character string transformation
[ flag ... ] file ...
[ library ... ]
size_t wcsxfrm(wchar_t *ws1, const wchar_t *ws2, size_t n);
size_t wsxfrm(wchar_t *ws1, const wchar_t *ws2, size_t n);
functions transform the wide character string pointed to by
and place the resulting wide character string into the array pointed to by
The transformation is such that if either the
functions are applied to two transformed wide strings, they return a
value greater than, equal to, or less than 0, corresponding to
the result of the
function applied to the same two original wide character strings.
No more than
wide-character codes are placed into the resulting array pointed to by
including the terminating null wide-character code.
is permitted to be a null pointer.
If copying takes place between objects that overlap, the
behaviour is undefined.
return the length of the transformed wide character string (not
including the terminating null wide-character code).
If the value returned is
or more, the contents of the array pointed to by
to indicate the error.
may fail if:
The wide character string pointed to by
contains wide-character codes outside the domain of the
The function is not supported.
The transformation function is such that
two transformed wide character strings can be ordered by the
functions as appropriate to collating sequence information in the
program's locale (category
The fact that when
is permitted to be a null pointer,
is useful to determine the size of the
array prior to making the transformation.
Because no return value is reserved to indicate an error, an application
wishing to check for error situations should set
and if it is non-zero, assume an error has occurred.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97