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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

52       None.
53

APPLICATION USAGE

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

RATIONALE

61       None.
62

FUTURE DIRECTIONS

64       None.
65

SEE ALSO

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