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

iswdigit.c « ctype « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94c74ae9cf7def87a0383d3d3abacb497d1a292e (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
/*
FUNCTION
	<<iswdigit>>---decimal digit wide-character test

INDEX
	iswdigit

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

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

DESCRIPTION
<<iswdigit>> is a function which classifies wide-character values that
are decimal digits.

RETURNS
<<iswdigit>> returns non-zero if <[c]> is a decimal digit wide-character.

PORTABILITY
<<iswdigit>> is C99.

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

int
_DEFUN(iswdigit,(c), wint_t c)
{
  return (c >= (wint_t)'0' && c <= (wint_t)'9');
}