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 values 0x20 (space) or 0x9 (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