source: trunk/libs/newlib/src/newlib/testsuite/newlib.wctype/twctrans.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 441 bytes
Line 
1#include <wctype.h>
2#include <newlib.h>
3#include "check.h"
4
5int main()
6{
7  wctrans_t x;
8
9  x = wctrans ("tolower");
10  CHECK (x != 0);
11  CHECK (towctrans (L'A', x) == towlower (L'A'));
12  CHECK (towctrans (L'5', x) == towlower (L'5'));
13
14  x = wctrans ("toupper");
15  CHECK (x != 0);
16  CHECK (towctrans (L'c', x) == towupper (L'c'));
17  CHECK (towctrans (L'9', x) == towupper (L'9'));
18
19  x = wctrans ("unknown");
20  CHECK (x == 0);
21
22  exit (0);
23}
Note: See TracBrowser for help on using the repository browser.