Transform one wide-character string into another, to a given length
#include <wchar.h> size_t wcsxfrm( wchar_t * ws1, const wchar_t * ws2, size_t n );
- The string that you want to transform.
- The string that you want to place in dst.
- The maximum number of characters to transform.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The wcsxfrm() function transforms the string pointed to by ws2 to the buffer pointed to by ws1, to a maximum of n wide-characters, including the terminating null. The two strings shouldn't overlap.
This function doesn't report errors in its returns; set errno to 0, call wcsxfrm(), and then check errno again.
The length of the transformed wide-character string. If this value is greater than n, the contents of ws1 are indeterminate.
Last modified: 2014-06-24