#include #include #include unsigned int chars[] = { 'A', 0x8140, /* double-byte space */ 0x8143, /* double-byte , */ 0x8260, /* double-byte A */ 0x829F, /* double-byte Hiragana */ 0x8340, /* double-byte Katakana */ 0x837F, /* illegal double-byte character */ 0x989F, /* double-byte L2 character */ 0xA6 /* single-byte Katakana */ }; #define SIZE sizeof( chars ) / sizeof( unsigned int ) void main() { int i; _setmbcp( 932 ); for( i = 0; i < SIZE; i++ ) { printf( "%#6.4x is %sa valid " "Hiragana character\n", chars[i], ( _ismbchira( chars[i] ) ) ? "" : "not " ); } }