iswblank(3)
β¨ iswblank(3) β¨ β the iswblank bestie from section 3 of the manual π
okay bestie, sit down, because today we're talking about iswblank, a little libc baddie that answers one very important question: is this wide character a blank, or is it not? π
πΈ NAME πΈ
iswblank β test for whitespace wide character
π LIBRARY π
Standard C library (libc, -lc)
π¦ SYNOPSIS π¦
#include <wctype.h>
int iswblank(wint_t wc);
π§ Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
iswblank():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
like, if you don't define those, glibc is gonna be like "who r u" π
π DESCRIPTION π
so. iswblank() is literally the wide-character equivalent of the isblank(3) function β same energy, wider characters. It tests whether wc is a wide character belonging to the wide-character class "blank". π«Ά
The wide-character class "blank" is a subclass of the wide-character class "space". yes, it's giving nepo baby, but like, in a math way.
Because it's a subclass of the wide-character class "space", the wide-character class "blank" is disjoint from the wide-character class "graph" and therefore also disjoint from its subclasses "alnum", "alpha", "upper", "lower", "digit", "xdigit", "punct". no overlap, no crossover, they don't hang out. π
The wide-character class "blank" always contains at least the space character and the control character '\t'. periodt. π
π RETURN VALUE π
iswblank() returns nonzero if wc is a wide character belonging to the wide-character class "blank". Otherwise, it returns zero. It's a yes or a no bestie, no in-between. β¨
π ATTRIBUTES π
For an explanation of the terms used in this section, see attributes(7).
- Interface:
iswblank() - Attribute: Thread safety
- Value:
MT-Safe locale
so like, it's thread-safe, but it's locale-thread-safe, if that makes sense. iykyk π
β STANDARDS β
POSIX.1-2008.
π°οΈ HISTORY π°οΈ
POSIX.1-2001. yeah, this one's been around a minute. iconic behavior honestly. π
π NOTES π
The behavior of iswblank() depends on the LC_CTYPE category of the current locale. so like, change your locale, change your answers. it's giving β¨situationship with your environment variablesβ¨.
π₯ SEE ALSO π₯
and that's the whole page, bestie!! this was the Linux man-pages 6.20 version, dated 2026-02-08. go forth and test your wide characters with confidence, mwah ππ π¦πβ¨
π¦ 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