SDL_ispunct(3)
π SDL_ispunct π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_ispunct β the lil guy who tells you if a character is a punctuation mark. periodt.
β¨ NAME β¨
SDL_ispunct β report if a character is a punctuation mark. like, is it a !? a ?? a lil ,? she'll tell you. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_ispunct(int x);
π DESCRIPTION π
WARNING: regardless of system locale, this is equivalent to c ((SDL_isgraph(x)) && (!SDL_isalnum(x)))
ngl bestie that's the whole vibe. no locale drama, no surprises β it's literally just "is it graphically renderable AND not a letter or a number?" and if yes, congrats, it's punctuation. π₯
π¦ FUNCTION PARAMETERS π¦
xβ the character value to check. hand her the character, she does the vibe check. π
β RETURN VALUE β
Returns non-zero if x falls within the character class, zero otherwise. so: truthy = yes it's punctuation, falsy = no ma'am. π
π§ THREAD SAFETY π§
It is safe to call this function from any thread. no cap. every thread can get a piece of this function, she's built different. π«Ά
π AVAILABILITY π
This function is available since SDL 3.2.0. iconic behavior honestly.
π SEE ALSO π
and that's the whole page, bestie!! this lil slice of the Simple Directmedia Layer manual, version SDL 3.4.18, was brought to you by SDL_ispunct(3) herself. go check your characters, stay punctual, and slay πβ¨π
π¦ 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