SDL_isblank(3)
π SDL_isblank(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_isblank π
β¨ NAME β¨
SDL_isblank β report if a character is blank (a space or a tab) π«Ά
like, is it just vibing there being all empty and quiet? this function will tell you.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_isblank(int x);
π DESCRIPTION π
WARNING: no cap, this is important β regardless of system locale, this will only treat ASCII values0x20(space) or0x9(tab) as true.
so like. your locale can be whatever it wants to be, doing its little locale things, and this function is still gonna be like "nah, only 0x20 and 0x9 count." periodt. π
π¦ FUNCTION PARAMETERS π¦
xβ character value to check. that's it, that's the whole vibe. hand it a character value and it'll do its thing β¨
β RETURN VALUE β
Returns non-zero if x falls within the character class, and zero otherwise.
so like... truthy = yes bestie it's blank, falsy = nope, not blank, moving on π
π THREAD SAFETY π
It is safe to call this function from any thread. main character energy, no drama, no locks, no stress π
π AVAILABILITY π
This function is available since SDL 3.2.0 π
Simple Directmedia Layer Β· SDL 3.4.18 β mwah, that's the tea, go forth and check your blanks, ily, bye bestie π§ππ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms