SDL_isgraph(3)

✨ SDL_isgraph ✨

okay bestie, welcome to the SDL_isgraph page from the SDL3 FUNCTIONS manual πŸ’– she's a lil function with a big job and honestly? we're gonna get through this together 🫢


🌸 NAME 🌸

SDL_isgraph β€” reports whether a character is any "printable" character except space ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_stdinc.h>

int SDL_isgraph(int x);

πŸ’… DESCRIPTION πŸ’…

okay so first things first, bestie, real talk: "printable" here has a definition that goes ALL the way back to text terminals from the literal dawn of computing πŸ‘‘ which means this is kind of a special-case function, and it is not suitable for Unicode (or honestly most any) text management. it's giving vintage. it's giving retro terminal core. it's just not built for your fancy modern text situation, no cap 😭

WARNING: regardless of system locale, this is equivalent to (SDL_isprint(x)) && ((x) != ' '). that's it. that's the whole vibe check. periodt πŸ’€

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • x β€” the character value you wanna check, bestie πŸ”

⭐ RETURN VALUE ⭐

returns non-zero if x falls within the character class, and zero otherwise. so like... yes or no energy, but make it int πŸ’…


🧚 THREAD SAFETY 🧚

it is safe to call this function from any thread. she's multithread-friendly, she's low maintenance, she's an icon πŸ‘‘βœ¨


🌈 AVAILABILITY 🌈

this function is available since SDL 3.2.0 πŸŽ€


πŸ“ SEE ALSO πŸ“


and that's the whole page, bestie!! go forth and check your characters πŸ’–

Simple Directmedia Layer β€” SDL 3.4.18 β€” SDL_isgraph(3) 🫢 mwah, stay iconic ✨

πŸ“¦ where this page comes from