SDL_isprint(3)
β¨ NAME β¨
okay so bestie, welcome to SDL_isprint(3), from the SDL3 FUNCTIONS manual. this one is SDL_isprint β report if a character is "printable". that's the whole job. π
β¨ SYNOPSIS β¨
here's the summoning circle, copy it exactly:
#include <SDL3/SDL_stdinc.h>
int SDL_isprint(int x);
π DESCRIPTION π
so like, be advised: "printable" has a definition that goes back to text terminals from the dawn of computing. that makes this a sort of special case function that is not suitable for Unicode (or most any) text management. it's giving retro terminal core, not modern text girlie. π
β οΈ WARNING: Regardless of system locale, this will only treat ASCII values' ' (0x20)through'~' (0x7E)as true.
π FUNCTION PARAMETERS π
xβ character value to check. π«Ά
π«Ά RETURN VALUE π«Ά
Returns non-zero if x falls within the character class, zero otherwise. periodt. β¨
π§ THREAD SAFETY π§
It is safe to call this function from any thread. no cap, any thread can pull up and ask. π¦
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older, she's not there yet. π
source/version: Simple Directmedia Layer, SDL 3.4.18 β page for SDL_isprint(3). the date slot is giving empty, so consider this your timestamp: right now, bestie β¨π«Άπ mwah.
π¦ 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