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

20 lines
334 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <wctype.h>
char *translations[2] = {
"tolower",
"toupper"
};
void main( void )
{
int i;
wint_t wc = 'A';
wint_t twc;
for( i = 0; i < 2; i++ ) {
twc = towctrans( wc, wctrans( translations[i] ) );
printf( "%s(%lc): %lc\n", translations[i], wc, twc );
}
}