#include #include #include int main () { wchar_t w[2] = { L'z', L'\0' }; setlocale (LC_ALL, ""); int l = wcsxfrm (NULL, w, 0); return l; }