Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ctype / iswalnum.c
blob7b2cac73bc0bab7d2b126d9a50f7b32cffbc81b9
1 /*
2 FUNCTION
3 <<iswalnum>>, <<iswalnum_l>>---alphanumeric wide character test
5 INDEX
6 iswalnum
8 INDEX
9 iswalnum_l
11 SYNOPSIS
12 #include <wctype.h>
13 int iswalnum(wint_t <[c]>);
15 #include <wctype.h>
16 int iswalnum_l(wint_t <[c]>, locale_t <[locale]>);
18 DESCRIPTION
19 <<iswalnum>> is a function which classifies wide-character values that
20 are alphanumeric.
22 <<iswalnum_l>> is like <<iswalnum>> 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 <<iswalnum>>, <<iswalnum_l>> return non-zero if <[c]> is a alphanumeric
28 wide character.
30 PORTABILITY
31 <<iswalnum>> is C99.
32 <<iswalnum_l>> is POSIX-1.2008.
34 No supporting OS subroutines are required.
36 #include <_ansi.h>
37 #include <wctype.h>
39 int
40 iswalnum (wint_t c)
42 return iswalnum_l (c, 0);