Files
RedBear-OS/tests/wctype/towupper.c
T
2020-04-26 19:13:03 +02:00

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;
}