This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/mbctohir.c

24 lines
380 B
C

#include <stdio.h>
#include <mbctype.h>
#include <mbstring.h>
unsigned int chars[] = {
0x8340,
0x8364,
0x8396
};
#define SIZE sizeof( chars ) / sizeof( unsigned int )
void main()
{
int i;
_setmbcp( 932 );
for( i = 0; i < SIZE; i++ ) {
printf( "%#6.4x - %#6.4x\n",
chars[ i ],
_mbctohira( chars[ i ] ) );
}
}