Skip to content
Snippets Groups Projects
Commit 9725d341 authored by Ahmed Abd El Mawgood's avatar Ahmed Abd El Mawgood
Browse files

Test towlower and towupper

parent 162999ac
No related branches found
No related tags found
1 merge request!267Wide strings Functions
...@@ -103,7 +103,9 @@ EXPECT_NAMES=\ ...@@ -103,7 +103,9 @@ EXPECT_NAMES=\
wchar/wcsstr \ wchar/wcsstr \
wchar/wcstod \ wchar/wcstod \
wchar/wcstok \ wchar/wcstok \
wchar/wcstol wchar/wcstol \
wctype/towlower \
wctype/towupper
# TODO: Fix these # TODO: Fix these
# mkfifo # mkfifo
......
HaLf WiDe ChAr StRiNg!
half wide char string!
HaLf WiDe ChAr StRiNg!
HALF WIDE CHAR STRING!
#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(towlower(str[i]));
}
return 0;
}
\ No newline at end of file
#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;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment