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 
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 }
wint_t towlower(wint_t)
Definition: towlower.c:4
unsigned wint_t
Definition: wctype.h:11
wint_t towupper(wint_t)
Definition: towupper.c:4
wint_t towctrans(wint_t wc, wctrans_t trans)
Definition: towctrans.c:4
const int * wctrans_t
Definition: wctype.h:10