1ISWXDIGIT(3P)              POSIX Programmer's Manual             ISWXDIGIT(3P)
2
3
4

PROLOG

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
11

NAME

13       iswxdigit, iswxdigit_l — test for a  hexadecimal  digit  wide-character
14       code
15

SYNOPSIS

17       #include <wctype.h>
18
19       int iswxdigit(wint_t wc);
20       int iswxdigit_l(wint_t wc, locale_t locale);
21

DESCRIPTION

23       For  iswxdigit(): The functionality described on this reference page is
24       aligned with the ISO C standard. Any conflict between the  requirements
25       described  here and the ISO C standard is unintentional. This volume of
26       POSIX.1‐2008 defers to the ISO C standard.
27
28       The iswxdigit() and iswxdigit_l() functions shall test whether wc is  a
29       wide-character  code  representing  a  character of class xdigit in the
30       current locale, or in the locale represented by  locale,  respectively;
31       see the Base Definitions volume of POSIX.1‐2008, Chapter 7, Locale.
32
33       The  wc  argument is a wint_t, the value of which the application shall
34       ensure is a wide-character code corresponding to a valid  character  in
35       the  current  locale,  or  equal to the value of the macro WEOF. If the
36       argument has any other value, the behavior is undefined.
37
38       The behavior is undefined if the locale argument  to  iswxdigit_l()  is
39       the  special  locale  object  LC_GLOBAL_LOCALE or is not a valid locale
40       object handle.
41

RETURN VALUE

43       The iswxdigit() and iswxdigit_l() functions shall return non-zero if wc
44       is  a  hexadecimal  digit  wide-character  code;  otherwise, they shall
45       return 0.
46

ERRORS

48       No errors are defined.
49
50       The following sections are informative.
51

EXAMPLES

53       None.
54

APPLICATION USAGE

56       To ensure applications  portability,  especially  across  natural  lan‐
57       guages,  only  these functions and the functions in the reference pages
58       listed in the SEE ALSO section should be used for character classifica‐
59       tion.
60

RATIONALE

62       None.
63

FUTURE DIRECTIONS

65       None.
66

SEE ALSO

68       iswalnum(), iswalpha(), iswcntrl(), iswctype(), iswdigit(), iswgraph(),
69       iswlower(),  iswprint(),  iswpunct(),  iswspace(),  iswupper(),  setlo‐
70       cale(), uselocale()
71
72       The  Base  Definitions  volume  of  POSIX.1‐2008,  Chapter  7,  Locale,
73       <locale.h>, <wctype.h>
74
76       Portions of this text are reprinted and reproduced in  electronic  form
77       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
78       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
79       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
80       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
81       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
82       event of any discrepancy between this version and the original IEEE and
83       The  Open Group Standard, the original IEEE and The Open Group Standard
84       is the referee document. The original Standard can be  obtained  online
85       at http://www.unix.org/online.html .
86
87       Any  typographical  or  formatting  errors that appear in this page are
88       most likely to have been introduced during the conversion of the source
89       files  to  man page format. To report such errors, see https://www.ker
90       nel.org/doc/man-pages/reporting_bugs.html .
91
92
93
94IEEE/The Open Group                  2013                        ISWXDIGIT(3P)
Impressum