iswprint(3)

✨ iswprint β€” test for printing wide character ✨

okay bestie, sit down, hydrate, and let's talk about iswprint from the iswprint(3) page πŸ’–


🫢 LIBRARY

Standard C library (libc, -lc) β€” she's built in, no extra linking drama, no cap.


🌸 SYNOPSIS

#include <wctype.h>

int iswprint(wint_t wc);

πŸ’… DESCRIPTION

So iswprint() is literally the wide-character equivalent of the isprint(3) function, fr fr. What she does is test whether wc is a wide character that belongs to the wide-character class "print".

Now the tea on the "print" class: it is disjoint from the wide-character class "cntrl" β€” they do not overlap, not even a little. πŸ™…β™€οΈ

And the "print" class also contains the wide-character class "graph". So graph characters are chilling inside print's house. iykyk.


⭐ RETURN VALUE

  • If wc is a wide character belonging to the wide-character class "print" β†’ she returns nonzero πŸ”₯
  • Otherwise β†’ she returns zero πŸ’€

That's it, that's the whole vibe check.


πŸŽ€ ATTRIBUTES

For an explanation of the terms used in this section, see attributes(7).

  • Interface: iswprint()
  • Attribute: Thread safety
  • Value: MT-Safe locale

So yes bestie, she's MT-Safe locale β€” write that down.


πŸ‘‘ STANDARDS

C11, POSIX.1-2008. Iconic behavior, standardized, periodt.


🌈 HISTORY

POSIX.1-2001, C99. She's been around, she's a legacy queen.


πŸ“ NOTES

The behavior of iswprint() depends on the LC_CTYPE category of the current locale. So like… your locale is the main character here. Change the locale, change the answer. Lowkey important, highkey true.


πŸ¦‹ SEE ALSO


okay that's the whole page, you're basically a wide-character expert now, so proud of you πŸ₯ΉπŸ’œ this was Linux man-pages 6.20, dated 2026-02-08 β€” mwah, 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