iswgraph(3)
β¨ iswgraph(3) β¨
okay bestie, welcome to the manual page for iswgraph() π«Ά this little icon lives in the Library Functions Manual and it's here to answer one very specific question for you: is this wide character graphic, or is it not? π
πΈ LIBRARY πΈ
Standard C library (libc, -lc) β she's literally built in, no extra install needed, no cap β¨
π SYNOPSIS π
#include <wctype.h>
int iswgraph(wint_t wc);
π DESCRIPTION π
iswgraph() is the wide-character equivalent of the isgraph(3) function. glowed up, same energy β¨ She tests whether wc is a wide character belonging to the wide-character class "graph".
The wide-character class "graph" is a subclass of the wide-character class "print". So it's giving print-adjacent, but make it exclusive π
Since she's a subclass of "print", the wide-character class "graph" is disjoint from the wide-character class "cntrl". They do not overlap, periodt π«
The wide-character class "graph" is also disjoint from the wide-character class "space" β and therefore also disjoint from "blank", which is "space"'s subclass. Not a single crumb of overlap, she said no thank you π
And here's the part that makes her iconic: the wide-character class "graph" contains all the wide characters from the wide-character class "print" except the space character. So it therefore contains the wide-character classes "alnum" and "punct" too. She's collecting classes like PokΓ©mon π
π₯ RETURN VALUE π₯
- nonzero β
wcis a wide character belonging to the wide-character class"graph"β - zero β otherwise. nope, not graphic, not today bestie π
π¦ ATTRIBUTES π¦
For an explanation of the terms used in this section, see attributes(7).
iswgraph()β Thread safety: MT-Safe locale π
ngl the original had a whole table here, but bullet form hits different and it's the exact same info π«Ά
π STANDARDS π
C11, POSIX.1-2008. Certified, official, she's in the standard π
π HISTORY π
POSIX.1-2001, C99. She's been around, she's got lore πβ¨
π NOTES π
The behavior of iswgraph() depends on the LC_CTYPE category of the current locale. fr fr β set your locale and she'll act accordingly, don't skip this step π
π SEE ALSO π
okay that's the whole vibe, bestie π this was Linux man-pages 6.20, dated 2026-02-08, and honestly? she ate π mwah, go check your wide chars 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