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/mbctokat.c

24 lines
380 B
C
Raw Normal View History

#include <stdio.h>
#include <mbctype.h>
#include <mbstring.h>
unsigned int chars[] = {
0x829F,
0x82B0,
0x82F1
};
#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 ],
_mbctokata( chars[ i ] ) );
}
}