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
wcis 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