Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ctype / iswdigit.c
blobd3562f8831e5a6f1150deaaaf63cfeded009b79a
1 /*
2 FUNCTION
3 <<iswdigit>>, <<iswdigit_l>>---decimal digit wide character test
5 INDEX
6 iswdigit
8 INDEX
9 iswdigit_l
11 SYNOPSIS
12 #include <wctype.h>
13 int iswdigit(wint_t <[c]>);
15 #include <wctype.h>
16 int iswdigit_l(wint_t <[c]>, locale_t <[locale]>);
18 DESCRIPTION
19 <<iswdigit>> is a function which classifies wide-character values that
20 are decimal digits.
22 <<iswdigit_l>> is like <<iswdigit>> but performs the check based on the
23 locale specified by the locale object locale. If <[locale]> is
24 LC_GLOBAL_LOCALE or not a valid locale object, the behaviour is undefined.
26 RETURNS
27 <<iswdigit>>, <<iswdigit_l>> return non-zero if <[c]> is a decimal digit wide character.
29 PORTABILITY
30 <<iswdigit>> is C99.
31 <<iswdigit_l>> is POSIX-1.2008.
33 No supporting OS subroutines are required.
35 #include <_ansi.h>
36 #include <wctype.h>
38 int
39 iswdigit (wint_t c)
41 return c >= (wint_t)'0' && c <= (wint_t)'9';
42 // category (c) == CAT_Nd not to be included as of C-99