source: trunk/libs/newlib/src/newlib/libc/ctype/iswalnum.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 880 bytes
Line 
1/*
2FUNCTION
3        <<iswalnum>>, <<iswalnum_l>>---alphanumeric wide character test
4
5INDEX
6        iswalnum
7
8INDEX
9        iswalnum_l
10
11SYNOPSIS
12        #include <wctype.h>
13        int iswalnum(wint_t <[c]>);
14
15        #include <wctype.h>
16        int iswalnum_l(wint_t <[c]>, locale_t <[locale]>);
17
18DESCRIPTION
19<<iswalnum>> is a function which classifies wide-character values that
20are alphanumeric.
21
22<<iswalnum_l>> is like <<iswalnum>> but performs the check based on the
23locale specified by the locale object locale.  If <[locale]> is
24LC_GLOBAL_LOCALE or not a valid locale object, the behaviour is undefined.
25
26RETURNS
27<<iswalnum>>, <<iswalnum_l>> return non-zero if <[c]> is a alphanumeric
28wide character.
29
30PORTABILITY
31<<iswalnum>> is C99.
32<<iswalnum_l>> is POSIX-1.2008.
33
34No supporting OS subroutines are required.
35*/
36#include <_ansi.h>
37#include <wctype.h>
38
39int
40iswalnum (wint_t c)
41{
42  return (iswalpha (c) || iswdigit (c));
43}
Note: See TracBrowser for help on using the repository browser.