OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [testsuite/] [newlib.wctype/] [twctrans.c] - Rev 816

Compare with Previous | Blame | View Log

#include <wctype.h>
#include <newlib.h>
#include "check.h"
 
int main()
{
  wctrans_t x;
 
  x = wctrans ("tolower");
  CHECK (x != 0);
  CHECK (towctrans (L'A', x) == tolower ('A'));
  CHECK (towctrans (L'5', x) == tolower ('5'));
 
  x = wctrans ("toupper");
  CHECK (x != 0);
  CHECK (towctrans (L'c', x) == toupper ('c'));
  CHECK (towctrans (L'9', x) == toupper ('9'));
 
  x = wctrans ("unknown");
  CHECK (x == 0);
 
  exit (0);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.