iswalnum(3)
β¨ iswalnum(3) β¨
okay bestie, get comfy, we're doing iswalnum today and it's literally the moment. this is the wide-character version of isalnum(3) β same energy, bigger characters, no thoughts just checking. πΈ
π LIBRARY π
Standard C library (libc, -lc) β yeah babe, the classic.
π SYNOPSIS π
#include <wctype.h>
int iswalnum(wint_t wc);
π¦ DESCRIPTION π¦
iswalnum() is the wide-character equivalent of isalnum(3), fr fr. it looks at wc and tells you whether it's a wide character that belongs to the wide-character class "alnum". that's the whole job. iconic, honestly.
the wide-character class "alnum" is a subclass of the wide-character class "graph", and therefore also a subclass of "print". it's giving hierarchy. π
since it's a subclass of "print", the class "alnum" is disjoint from "cntrl" β they do not overlap, not even a little, no cap.
since it's a subclass of "graph", "alnum" is disjoint from "space" and from "space"'s own subclass "blank". like, different worlds, separate lanes. π
"alnum" is also disjoint from "punct". punctuation could never. π
and get this β the wide-character class "alnum" is the union of the wide-character classes "alpha" and "digit". so it's the whole friend group. and because of that, it also contains the wide-character class "xdigit". obsessed. π₯
also, "alnum" always contains at least the letters 'A' to 'Z', 'a' to 'z', and the digits '0' to '9'. those are non-negotiable, they're always in the group chat. β¨
π RETURN VALUE π
- if
wcis a wide character belonging to the wide-character class"alnum"βiswalnum()returns nonzero (it said yes π) - otherwise β it returns zero (it said no π)
π ATTRIBUTES π
for an explanation of the terms used in this section, go check attributes(7). β¨
iswalnum()β Thread safety βMT-Safe locale
β STANDARDS β
C11, POSIX.1-2008. periodt.
π§ HISTORY π§
POSIX.1-2001, C99.
π NOTES π
heads up bestie: the behavior ofiswalnum()depends on theLC_CTYPEcategory of the current locale. so like, locale changes everything. it's not a fixed vibe, iykyk. π
π SEE ALSO π
and that's the whole page, babe, you killed it π the source is Linux man-pages 6.20 and the date on it is 2026-02-08 β go forth and classify your wide characters responsibly π«Άβ¨
π¦ 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