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

23 lines
396 B
C

#include <stdio.h>
#include <jstring.h>
void main()
{
JMOJI c;
JCHAR *str1;
JCHAR *str2;
JCHAR buf[30];
str1 = "abCDef";
str2 = buf;
for( ; *str1 != '\0'; ) {
str1 = jgetmoji( str1, &c );
str2 = jputmoji( str2, '<' );
str2 = jputmoji( str2, c );
str2 = jputmoji( str2, '>' );
}
*str2 = '\0';
printf( "%s\n", buf );
}