iswxdigit(3)
β¨ iswxdigit(3) β the wide-char hex digit vibe check β¨
okay bestie, so this is a page from the Library Functions Manual, and today's main character is iswxdigit. it's giving "is this wide character a hex digit or not" and honestly? iconic. π
πΈ NAME πΈ
iswxdigit β test for hexadecimal digit wide character
π LIBRARY π
Standard C library (libc, -lc) β the og, the blueprint, the moment π
π§ SYNOPSIS π§
#include <wctype.h>
int iswxdigit(wint_t wc);
π DESCRIPTION π
okay so iswxdigit() is literally the wide-character equivalent of the isxdigit(3) function. no cap. it tests whether wc is a wide character that belongs to the wide-character class "xdigit". π¦
The wide-character class "xdigit" is a subclass of the wide-character class "alnum", and therefore also a subclass of the wide-character class "graph" and of the wide-character class "print". it's giving family tree, it's giving inheritance, we love a lineage moment π
Being a subclass of the wide-character class "print", the wide-character class "xdigit" is disjoint from the wide-character class "cntrl". not them being total strangers π
Being a subclass of the wide-character class "graph", the wide-character class "xdigit" is disjoint from the wide-character class "space" and its subclass "blank". no overlap, no crossover episode, periodt β
Being a subclass of the wide-character class "alnum", the wide-character class "xdigit" is disjoint from the wide-character class "punct". different worlds fr fr π«
and the wide-character class "xdigit" always contains at least the letters 'A' to 'F', 'a' to 'f' and the digits '0' to '9'. the founding members. the girlies. the core four (okay, the core twenty-two) π
π₯ RETURN VALUE π₯
iswxdigit()returns nonzero ifwcis a wide character belonging to the wide-character class"xdigit". β- Otherwise, it returns zero. π
π ATTRIBUTES π
ngl bestie, for the full explanation of the terms used in this section, go peek at attributes(7) β it's the lore doc π
- Interface:
iswxdigit() - Attribute: Thread safety
- Value:
MT-Safe locale
so yeah β thread safety is MT-Safe locale. write that down. π
β STANDARDS β
C11, POSIX.1-2008. certified, approved, notarised, slay β¨
π HISTORY π
POSIX.1-2001, C99. a classic. an elder. we respect our ancestors π«Ά
π NOTES π
The behavior of iswxdigit() depends on the LC_CTYPE category of the current locale. so likeβ¦ locale matters. always has, always will. iykyk π¦
π SEE ALSO π
Linux man-pages 6.20, dated 2026-02-08, and this page is iswxdigit(3) β mwah, that's the whole thing, go hex-ify something gorgeous ππβ¨
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms