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 values 0 through 0x1F, and 0x7F, 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