SDL_iscntrl(3)
π SDL_iscntrl π
okay bestie, gather round, because today we're vibing with SDL_iscntrl from the SDL3 functions lineup β it's the little guy that tells you if a character is a control character. no cap. β¨
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_iscntrl(int x);
π¦ DESCRIPTION π¦
so like, it reports whether a character is a control character, periodt. π
β οΈ WARNING: Regardless of system locale, this will only treat ASCII values0through0x1F, and0x7F, as true. that's the whole vibe check, no matter what your locale is trying to tell you. π
π FUNCTION PARAMETERS π
xβ character value to check. give it the lil guy and it'll tell you what's up. π
π RETURN VALUE π
Returns non-zero if x falls within the character class, zero otherwise. simple as that, fr fr. β¨
π§ THREAD SAFETY π§
It is safe to call this function from any thread. so go off, call it from wherever, it's giving unbothered. π«Ά
β AVAILABILITY β
This function is available since SDL 3.2.0. iconic behavior honestly. π
mwah π that's the whole page, bestie β go check those control characters and slay.
this has been your girl from the Simple Directmedia Layer, running SDL 3.4.18, signing off on SDL_iscntrl(3) β stay cunty, stay safe, and don't forget to read your manpages. ππ
β¨
π¦ 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