Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
towctrans.c
Go to the documentation of this file.
1
#include <
string.h
>
2
#include <
wctype.h
>
3
4
wint_t
towctrans
(
wint_t
wc,
wctrans_t
trans)
5
{
6
if
(trans == (
wctrans_t
)1)
7
{
8
return
towupper
(wc);
9
}
10
11
if
(trans == (
wctrans_t
)2)
12
{
13
return
towlower
(wc);
14
}
15
16
return
wc;
17
}
towlower
wint_t towlower(wint_t)
Definition:
towlower.c:4
wint_t
unsigned wint_t
Definition:
wctype.h:11
string.h
towupper
wint_t towupper(wint_t)
Definition:
towupper.c:4
towctrans
wint_t towctrans(wint_t wc, wctrans_t trans)
Definition:
towctrans.c:4
wctype.h
wctrans_t
const int * wctrans_t
Definition:
wctype.h:10
src
wchar
towctrans.c
Generated by
1.8.15