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

Go to the source code of this file.

Functions

wctrans_t wctrans (const char *class)
 

Function Documentation

◆ wctrans()

wctrans_t wctrans ( const char *  class)

Definition at line 4 of file wctrans.c.

5 {
6  if(!strcmp(class, "toupper"))
7  {
8  return (wctrans_t)1;
9  }
10 
11  if(!strcmp(class, "tolower"))
12  {
13  return (wctrans_t)2;
14  }
15 
16  return 0;
17 }
int strcmp(const char *s1, const char *s2)
Compares two null-terminated byte strings lexicographically.
Definition: strcmp.c:12
const int * wctrans_t
Definition: wctype.h:10

References strcmp().