1ISWDIGIT(3P) POSIX Programmer's Manual ISWDIGIT(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 iswdigit - test for a decimal digit wide-character code
13
15 #include <wctype.h>
16
17 int iswdigit(wint_t wc);
18
19
21 The iswdigit() function shall test whether wc is a wide-character code
22 representing a character of class digit in the program's current
23 locale; see the Base Definitions volume of IEEE Std 1003.1-2001, Chap‐
24 ter 7, Locale.
25
26 The wc argument is a wint_t, the value of which the application shall
27 ensure is a wide-character code corresponding to a valid character in
28 the current locale, or equal to the value of the macro WEOF. If the
29 argument has any other value, the behavior is undefined.
30
32 The iswdigit() function shall return non-zero if wc is a decimal digit
33 wide-character code; otherwise, it shall return 0.
34
36 No errors are defined.
37
38 The following sections are informative.
39
41 None.
42
44 To ensure applications portability, especially across natural lan‐
45 guages, only this function and those listed in the SEE ALSO section
46 should be used for classification of wide-character codes.
47
49 None.
50
52 None.
53
55 iswalnum(), iswalpha(), iswcntrl(), iswctype(), iswgraph(), iswlower(),
56 iswprint(), iswpunct(), iswspace(), iswupper(), iswxdigit(), setlo‐
57 cale(), the Base Definitions volume of IEEE Std 1003.1-2001, Chapter 7,
58 Locale, <wchar.h>, <wctype.h>
59
61 Portions of this text are reprinted and reproduced in electronic form
62 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
63 -- Portable Operating System Interface (POSIX), The Open Group Base
64 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
65 Electrical and Electronics Engineers, Inc and The Open Group. In the
66 event of any discrepancy between this version and the original IEEE and
67 The Open Group Standard, the original IEEE and The Open Group Standard
68 is the referee document. The original Standard can be obtained online
69 at http://www.opengroup.org/unix/online.html .
70
71
72
73IEEE/The Open Group 2003 ISWDIGIT(3P)