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 β€” wc is 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