Welcome to mirror list, hosted at ThFree Co, Russian Federation.

iswupper.c « ctype « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 872475da2269ba7e60044add2ebe49a0be03aea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

/*
FUNCTION
	<<iswupper>>---upper-case wide-character test

INDEX
	iswupper

ANSI_SYNOPSIS
	#include <wctype.h>
	int iswupper(wint_t <[c]>);

TRAD_SYNOPSIS
	#include <wctype.h>
	int iswupper(<[c]>)
	wint_t <[c]>;

DESCRIPTION
<<iswupper>> is a function which classifies wide-character values that
have an upper-case translation.

RETURNS
<<iswupper>> returns non-zero if <[c]> is a upper-case wide-character.

PORTABILITY
<<iswupper>> is C99.

No supporting OS subroutines are required.
*/
#include <_ansi.h>
#include <wctype.h>

int
_DEFUN(iswupper,(c),wint_t c)
{
  return (towlower (c) != c);
}