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/kanji/iskanji.c

23 lines
356 B
C
Raw Normal View History

#include <stdio.h>
#include <jstring.h>
#include <jctype.h>
JMOJI chars[] = {
'.',
0x9941,
0xA4,
0xA6
};
#define SIZE sizeof( chars ) / sizeof( JMOJI )
void main()
{
int i;
for( i = 0; i < SIZE; i++ ) {
printf( "Char does %shave a valid first byte\n",
( iskanji( chars[i]>>8 ) ) ? "" : "not " );
}
}