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

23 lines
482 B
C

#include <stdio.h>
#include <string.h>
#include <mbctype.h>
#include <mbstring.h>
void main()
{
unsigned char big_string[10];
int i;
_setmbcp( 932 );
memset( (char *) big_string, 0xee, 10 );
big_string[9] = 0x00;
for( i = 0; i < 10; i++ )
printf( "%2.2x ", big_string[i] );
printf( "\n" );
_mbsnbset( big_string, 0x8145, 5 );
for( i = 0; i < 10; i++ )
printf( "%2.2x ", big_string[i] );
printf( "\n" );
}