/*★ Unicode Console Program 前田 稔 ★*/ #include #include #include int main( void ) { wchar_t wstring[] = L"Unicode"; wchar_t *wstring2 = L"全角文字"; size_t nLeng; setlocale(LC_ALL, "japanese"); nLeng= wcslen(wstring); wprintf(L"wchar_t=%s \nサイズ=%d \n", wstring,nLeng); nLeng= wcslen(wstring2); wprintf(L"wchar_t=%s \nサイズ=%d \n", wstring2,nLeng); }