20 lines
334 B
C
20 lines
334 B
C
|
#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 );
|
||
|
}
|
||
|
}
|