SDL_isalpha(3)
π NAME π
SDL_isalpha β bestie, this is the one that checks if a character is alphabetic, aka an actual letter. π€β¨
β¨ SYNOPSIS β¨
#include <SDL3/SDL_stdinc.h>
int SDL_isalpha(int x);
πΈ DESCRIPTION πΈ
Okay so here's the tea, and it's important tea, so listen up. π«
β οΈ WARNING: no matter what your system locale is doing β literally regardless of it β this function will only treat ASCII values for English'a-z'and'A-Z'as true. That's it. That's the whole vibe. Don't come for it with your fancy locale expectations, it's not gonna happen. π
π FUNCTION PARAMETERS π
xβ the character value you wanna check. that's it, that's the whole input. π
π« RETURN VALUE π«
Returns non-zero if x falls within the character class, and zero otherwise. So like... truthy = yes it's a letter, falsy = nope bestie, not a letter. π¦
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. Go off, call it from literally wherever, it does not care. Main character energy, zero drama. π
π AVAILABILITY π
This function is available since SDL 3.2.0. So if you're on something older... girl. upgrade. π
and that's the whole page, no cap π this lil writeup came straight outta the Simple Directmedia Layer crew, sitting pretty at SDL 3.4.18, dated SDL_isalpha(3) β mwah, iconic, periodt. πβ¨
π¦ 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