12 lines
246 B
C
12 lines
246 B
C
#include <stdio.h>
|
|
#include <wchar.h>
|
|
#include <wctype.h>
|
|
|
|
int main() {
|
|
wchar_t *str = L"HaLf WiDe ChAr StRiNg!\n";
|
|
fputws(str, stdout);
|
|
for (int i = 0; i < wcslen(str); i++) {
|
|
putwchar(towupper(str[i]));
|
|
}
|
|
return 0;
|
|
} |