Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
towctrans.c File Reference
#include <string.h>
#include <wctype.h>
Include dependency graph for towctrans.c:

Go to the source code of this file.

Functions

wint_t towctrans (wint_t wc, wctrans_t trans)
 

Function Documentation

◆ towctrans()

wint_t towctrans ( wint_t  wc,
wctrans_t  trans 
)

Definition at line 4 of file towctrans.c.

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
wint_t towupper(wint_t)
Definition: towupper.c:4
const int * wctrans_t
Definition: wctype.h:10

References towlower(), and towupper().