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 if wc is 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