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 πŸ”₯

isblank(3), iswctype(3)


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