SDL_isdigit(3)
SDL_isdigit(3) β from the SDL3 FUNCTIONS manual π
okay bestie, gather round: this is the page for SDL_isdigit, and it's giving βis this character a digit?β energy. No cap, it's short, it's useful, and it has one very important warning. Let's go π«Ά
πΈ NAME πΈ
SDL_isdigit - Report if a character is a numeric digit.
π SYNOPSIS π
#include <SDL3/SDL_stdinc.h>
int SDL_isdigit(int x);
π DESCRIPTION π
WARNING: Regardless of system locale, this will only treat ASCII values'0'(0x30) through'9'(0x39), as true. Periodt.
π FUNCTION PARAMETERS π
xβ character value to check. (bestie, that's the whole parameter list, she's simple π )
π« RETURN VALUE π«
Returns non-zero if x falls within the character class, zero otherwise. That's it, that's the tea.
π§΅ THREAD SAFETY π§΅
It is safe to call this function from any thread. Slay, no locks needed, go off.
π AVAILABILITY π
This function is available since SDL 3.2.0. OG status: unlocked.
Signing off from Simple Directmedia Layer, version SDL 3.4.18, on the SDL_isdigit(3) page. No date listed in the footer, so that's the whole vibe β 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